diff options
Diffstat (limited to 'tests/test_rvalue_ref.cc')
-rw-r--r-- | tests/test_rvalue_ref.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/test_rvalue_ref.cc b/tests/test_rvalue_ref.cc index b35ace1..54b04f3 100644 --- a/tests/test_rvalue_ref.cc +++ b/tests/test_rvalue_ref.cc @@ -2,7 +2,9 @@ #include <iostream> #include <sigc++/signal.h> -struct MoveableStruct {}; +struct MoveableStruct +{ +}; namespace { @@ -11,10 +13,7 @@ std::ostringstream result_stream; struct foo { - void operator()(MoveableStruct &&x) - { - result_stream << "foo(MoveableStruct&&)"; - } + void operator()(MoveableStruct&& /* x */) { result_stream << "foo(MoveableStruct&&)"; } }; } // end anonymous namespace @@ -22,7 +21,7 @@ struct foo void test_signal() { - sigc::signal<void (MoveableStruct &&)> signal; + sigc::signal<void(MoveableStruct &&)> signal; foo f; signal.connect(f); MoveableStruct x; @@ -33,7 +32,7 @@ test_signal() void test_slot() { - sigc::slot<void (MoveableStruct &&)> slot; + sigc::slot<void(MoveableStruct &&)> slot; foo f; slot = f; MoveableStruct x; |