[libsigcplusplus] tests: Some use of auto.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigcplusplus] tests: Some use of auto.
- Date: Fri, 21 Jul 2017 06:23:57 +0000 (UTC)
commit 573fc5409b055d92857205cf29d631b8eec04001
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Apr 21 14:52:44 2017 +0200
tests: Some use of auto.
Noticed by clang-tidy.
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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]