diff options
author | Murray Cumming <murrayc@murrayc.com> | 2017-04-21 14:52:44 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2017-07-21 08:20:57 +0200 |
commit | 573fc5409b055d92857205cf29d631b8eec04001 (patch) | |
tree | 9d37e1b70b3782f54f969f1631fdd5a8f60e425d | |
parent | dc6ac67425f2c3ba5b9ee0d897d614bedcb41a66 (diff) | |
download | sigc++-573fc5409b055d92857205cf29d631b8eec04001.tar.gz |
tests: Some use of auto.
Noticed by clang-tidy.
-rw-r--r-- | tests/test_track_obj.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_track_obj.cc b/tests/test_track_obj.cc index bdca485..1c93b69 100644 --- a/tests/test_track_obj.cc +++ b/tests/test_track_obj.cc @@ -134,8 +134,8 @@ main(int argc, char* argv[]) // Allocate on the heap. valgrind can then find erroneous memory accesses. // (There should be none, of course.) auto psl2 = new sigc::slot<std::string(int, std::string)>; - bar_group4* pbar4 = new bar_group4; - book* pbook4 = new book("A Book"); + auto pbar4 = new bar_group4; + auto pbook4 = new book("A Book"); *psl2 = sigc::track_obj(Functor2(*pbar4, *pbook4), *pbar4, *pbook4); result_stream << (*psl2)(0, "Book title: "); util->check_result(result_stream, "zero, Book title: A Book"); |