summaryrefslogtreecommitdiff
path: root/tests/test_signal_move.cc
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-03-30 16:04:17 +0200
committerMurray Cumming <murrayc@murrayc.com>2016-03-30 16:04:17 +0200
commit9656bc2c0ead7e2155d5df701ca5ce34f2b00f49 (patch)
tree0efff286142cefca9f562e152ce412465bac5743 /tests/test_signal_move.cc
parent788ad92a56bb1dc8234bd1f4d523a079db68729f (diff)
downloadsigc++-9656bc2c0ead7e2155d5df701ca5ce34f2b00f49.tar.gz
Add .clang-format file and reformat tests and examples.
Diffstat (limited to 'tests/test_signal_move.cc')
-rw-r--r--tests/test_signal_move.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/test_signal_move.cc b/tests/test_signal_move.cc
index cd9e69f..85f1199 100644
--- a/tests/test_signal_move.cc
+++ b/tests/test_signal_move.cc
@@ -14,7 +14,8 @@ namespace
{
std::ostringstream result_stream;
-int foo(int i)
+int
+foo(int i)
{
result_stream << "foo(int " << i << ")";
return 1;
@@ -22,7 +23,8 @@ int foo(int i)
} // end anonymous namespace
-int main(int argc, char* argv[])
+int
+main(int argc, char* argv[])
{
auto util = TestUtilities::get_instance();
@@ -35,13 +37,13 @@ int main(int argc, char* argv[])
sig(1);
util->check_result(result_stream, "foo(int 1)");
- //Test the move constructor:
+ // Test the move constructor:
sigc::signal<int(int)> sig2(std::move(sig));
sig(-2);
sig2(2);
util->check_result(result_stream, "foo(int 2)");
- //Test the move assignment operator:
+ // Test the move assignment operator:
sigc::signal<int(int)> sig3;
sig3 = std::move(sig2);
sig2(-3);