Running astyle [ci skip]

This commit is contained in:
orbitcowboy 2021-04-09 08:46:47 +02:00
parent 98335e5d5f
commit 260eb4acac
1 changed files with 20 additions and 20 deletions

View File

@ -910,27 +910,27 @@ private:
} }
void copyConstructor5() { void copyConstructor5() {
checkCopyConstructor("class Copyable {};\n" checkCopyConstructor("class Copyable {};\n"
"\n" "\n"
"class Foo : public Copyable, public UnknownType {\n" "class Foo : public Copyable, public UnknownType {\n"
"public:\n" "public:\n"
" Foo() : m_ptr(new int) {}\n" " Foo() : m_ptr(new int) {}\n"
" ~Foo() { delete m_ptr; }\n" " ~Foo() { delete m_ptr; }\n"
"private:\n" "private:\n"
" int* m_ptr;\n" " int* m_ptr;\n"
"};"); "};");
ASSERT_EQUALS("", errout.str()); ASSERT_EQUALS("", errout.str());
checkCopyConstructor("class Copyable {};\n" checkCopyConstructor("class Copyable {};\n"
"\n" "\n"
"class Foo : public UnknownType, public Copyable {\n" "class Foo : public UnknownType, public Copyable {\n"
"public:\n" "public:\n"
" Foo() : m_ptr(new int) {}\n" " Foo() : m_ptr(new int) {}\n"
" ~Foo() { delete m_ptr; }\n" " ~Foo() { delete m_ptr; }\n"
"private:\n" "private:\n"
" int* m_ptr;\n" " int* m_ptr;\n"
"};"); "};");
ASSERT_EQUALS("", errout.str()); ASSERT_EQUALS("", errout.str());
} }
void noOperatorEq() { void noOperatorEq() {