summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2008-12-03 19:12:50 -0800
committerDaniel Burrows <dburrows@debian.org>2008-12-03 19:12:50 -0800
commit02eea4ecd0b8415b6b7480963af5351cce3d1d74 (patch)
tree516b59652c5cd1c7971a4f8509c0b29c492356d9 /src
parent0ed835d805ed14d636b77d4d9b23b7823e3833d4 (diff)
downloadaptitude-02eea4ecd0b8415b6b7480963af5351cce3d1d74.tar.gz
Add a local variable to collect some verbose dereferences.
Diffstat (limited to 'src')
-rw-r--r--src/gtk/entityview.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gtk/entityview.cc b/src/gtk/entityview.cc
index 9219cb1d..78aaa90f 100644
--- a/src/gtk/entityview.cc
+++ b/src/gtk/entityview.cc
@@ -487,8 +487,9 @@ namespace gui
if(!actions.empty())
{
- pMainWindow->get_menu_package()->items().clear();
- fill_menu(actions, sigc::mem_fun(this, &EntityView::apply_action_to_selected), pMainWindow->get_menu_package());
+ Gtk::Menu * const menu_package = pMainWindow->get_menu_package();
+ menu_package->items().clear();
+ fill_menu(actions, sigc::mem_fun(this, &EntityView::apply_action_to_selected), menu_package);
}
}
}