summaryrefslogtreecommitdiff
path: root/src/vscreen
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2005-10-05 00:35:29 +0000
committerDaniel Burrows <dburrows@debian.org>2005-10-05 00:35:29 +0000
commit6f379f35ae5c9ab0e8552f4f25fad2c61cd2052e (patch)
tree889e240931d0a42fd248b33c825337e030a152ab /src/vscreen
parente6ca046ed66225ce349538a4cd27545a68dcbfbd (diff)
downloadaptitude-6f379f35ae5c9ab0e8552f4f25fad2c61cd2052e.tar.gz
[aptitude @ Eliminate an unnecessary auxillary function using sigc::hide.]
Diffstat (limited to 'src/vscreen')
-rw-r--r--src/vscreen/vs_util.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/vscreen/vs_util.cc b/src/vscreen/vs_util.cc
index 7a7db915..f7913dfe 100644
--- a/src/vscreen/vs_util.cc
+++ b/src/vscreen/vs_util.cc
@@ -16,6 +16,7 @@
#include <config/keybindings.h>
#include <sigc++/adaptors/bind.h>
+#include <sigc++/adaptors/hide.h>
#include <sigc++/functors/mem_fun.h>
#include <aptitude.h>
@@ -286,12 +287,6 @@ vs_widget_ref vs_dialog_fileview(const string &fn,
encoding);
}
-static void do_dialog_string(wstring s,
- sigc::slot0<void> realslot)
-{
- realslot();
-}
-
static void also_do_dialog_string(vs_editline &e,
sigc::slot1<void, wstring> thestrslot)
{
@@ -325,8 +320,7 @@ vs_widget_ref vs_dialog_string(const vs_widget_ref &msg,
vs_table::ALIGN_CENTER|vs_table::SHRINK,
vs_table::ALIGN_CENTER);
- e->entered.connect(sigc::bind(sigc::ptr_fun(do_dialog_string),
- bok->pressed.make_slot()));
+ e->entered.connect(sigc::hide(bok->pressed.make_slot()));
if(changed_slot)
e->text_changed.connect(*changed_slot);