summaryrefslogtreecommitdiff
path: root/src/solution_screen.cc
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2008-01-20 12:13:42 -0800
committerDaniel Burrows <dburrows@debian.org>2008-01-20 12:13:42 -0800
commit5e0348723d2e2c88d716bed4b6567f4a8990afdd (patch)
tree360b0ea1ca1a200c9acb40b41340117ba6e69ad8 /src/solution_screen.cc
parentb3a8a0d0c844b3da88aae02a349f3e484e6ea7c8 (diff)
downloadaptitude-5e0348723d2e2c88d716bed4b6567f4a8990afdd.tar.gz
Find and apply a workaround for the uninitialized variable warning.
g++ doesn't warn if you declare all the arguments to the constructor it's complaining about as local variables instead of using temporaries.
Diffstat (limited to 'src/solution_screen.cc')
-rw-r--r--src/solution_screen.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/solution_screen.cc b/src/solution_screen.cc
index aae438aa..f57f4dfc 100644
--- a/src/solution_screen.cc
+++ b/src/solution_screen.cc
@@ -571,7 +571,10 @@ cw::widget_ref make_solution_screen()
{
cw::table_ref rval = cw::table::create();
- cw::label_ref l = cw::label::create(L"");
+ // Declaring an empty string variable is a workaround for strange
+ // behavior in g++ 4.3.
+ std::wstring empty_string;
+ cw::label_ref l = cw::label::create(empty_string);
menu_tree_ref info_tree = solution_undo_tree::create();
solution_examiner_ref examiner