Skip to content

Commit 573fc54

Browse files
committed
tests: Some use of auto.
Noticed by clang-tidy.
1 parent dc6ac67 commit 573fc54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_track_obj.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ main(int argc, char* argv[])
134134
// Allocate on the heap. valgrind can then find erroneous memory accesses.
135135
// (There should be none, of course.)
136136
auto psl2 = new sigc::slot<std::string(int, std::string)>;
137-
bar_group4* pbar4 = new bar_group4;
138-
book* pbook4 = new book("A Book");
137+
auto pbar4 = new bar_group4;
138+
auto pbook4 = new book("A Book");
139139
*psl2 = sigc::track_obj(Functor2(*pbar4, *pbook4), *pbar4, *pbook4);
140140
result_stream << (*psl2)(0, "Book title: ");
141141
util->check_result(result_stream, "zero, Book title: A Book");

0 commit comments

Comments
 (0)