diff options
author | Murray Cumming <murrayc@murrayc.com> | 2017-04-21 14:53:06 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2017-07-21 08:20:58 +0200 |
commit | 3026ef7c4e70d8dcffe821f9064652446b44db41 (patch) | |
tree | fd598f5ad4a43f1595a00aa036306922a3858d83 | |
parent | 573fc5409b055d92857205cf29d631b8eec04001 (diff) | |
download | sigc++-3026ef7c4e70d8dcffe821f9064652446b44db41.tar.gz |
tests: Initialize a member variable.
Noticed by clang-tidy.
-rw-r--r-- | tests/test_trackable.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_trackable.cc b/tests/test_trackable.cc index cb55edb..bd48fe6 100644 --- a/tests/test_trackable.cc +++ b/tests/test_trackable.cc @@ -13,7 +13,7 @@ std::ostringstream result_stream; class my_class : public sigc::trackable { public: - int i; + int i = 0; void foo() { result_stream << i; } }; |