[pan2: 57/68] Change cast type for performance.
- From: Petr Kovář <pmkovar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2: 57/68] Change cast type for performance.
- Date: Tue, 8 Feb 2011 23:02:49 +0000 (UTC)
commit a31cc834cb44719b94ec28ad965158a85d05b610
Author: K. Haley <haleykd users sf net>
Date: Sun Sep 5 15:57:29 2010 -0600
Change cast type for performance.
pan/gui/header-pane.cc | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/pan/gui/header-pane.cc b/pan/gui/header-pane.cc
index eef645a..960896f 100644
--- a/pan/gui/header-pane.cc
+++ b/pan/gui/header-pane.cc
@@ -361,8 +361,10 @@ HeaderPane :: column_compare_func (GtkTreeModel * model,
{
int ret (0);
const PanTreeStore * store (reinterpret_cast<PanTreeStore*>(model));
- const Row& row_a (*dynamic_cast<const Row*>(store->get_row (iter_a)));
- const Row& row_b (*dynamic_cast<const Row*>(store->get_row (iter_b)));
+ //const Row& row_a (*dynamic_cast<const Row*>(store->get_row (iter_a)));
+ //const Row& row_b (*dynamic_cast<const Row*>(store->get_row (iter_b)));
+ const Row& row_a (*static_cast<const Row*>(store->get_row (iter_a)));
+ const Row& row_b (*static_cast<const Row*>(store->get_row (iter_b)));
int sortcol;
GtkSortType order;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]