From 66599b4ade1b295201c14ba298f0716902670fb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 14 May 2018 22:48:37 +0200 Subject: [PATCH] astyle formatting [ci skip] --- test/testleakautovar.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/testleakautovar.cpp b/test/testleakautovar.cpp index d6b1b46c3..24cb0849e 100644 --- a/test/testleakautovar.cpp +++ b/test/testleakautovar.cpp @@ -142,7 +142,7 @@ private: TEST_CASE(inlineFunction); // #3989 - TEST_CASE(smartPtrInContainer); // #8262 + TEST_CASE(smartPtrInContainer); // #8262 } void check(const char code[], bool cpp = false) { @@ -1523,17 +1523,17 @@ private: ASSERT_EQUALS("", errout.str()); } - // #8262 - void smartPtrInContainer() { - check( "std::list< std::shared_ptr > mList;\n" - "void test(){\n" - " int *pt = new int(1);\n" - " mList.push_back(std::shared_ptr(pt));\n" - "}\n", - true - ); - TODO_ASSERT_EQUALS("", "[test.cpp:5]: (error) Memory leak: pt\n", errout.str()); - } + // #8262 + void smartPtrInContainer() { + check("std::list< std::shared_ptr > mList;\n" + "void test(){\n" + " int *pt = new int(1);\n" + " mList.push_back(std::shared_ptr(pt));\n" + "}\n", + true + ); + TODO_ASSERT_EQUALS("", "[test.cpp:5]: (error) Memory leak: pt\n", errout.str()); + } };