Running astyle [ci skip]
This commit is contained in:
parent
98335e5d5f
commit
260eb4acac
|
@ -910,27 +910,27 @@ private:
|
|||
}
|
||||
|
||||
void copyConstructor5() {
|
||||
checkCopyConstructor("class Copyable {};\n"
|
||||
"\n"
|
||||
"class Foo : public Copyable, public UnknownType {\n"
|
||||
"public:\n"
|
||||
" Foo() : m_ptr(new int) {}\n"
|
||||
" ~Foo() { delete m_ptr; }\n"
|
||||
"private:\n"
|
||||
" int* m_ptr;\n"
|
||||
"};");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
checkCopyConstructor("class Copyable {};\n"
|
||||
"\n"
|
||||
"class Foo : public Copyable, public UnknownType {\n"
|
||||
"public:\n"
|
||||
" Foo() : m_ptr(new int) {}\n"
|
||||
" ~Foo() { delete m_ptr; }\n"
|
||||
"private:\n"
|
||||
" int* m_ptr;\n"
|
||||
"};");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
|
||||
checkCopyConstructor("class Copyable {};\n"
|
||||
"\n"
|
||||
"class Foo : public UnknownType, public Copyable {\n"
|
||||
"public:\n"
|
||||
" Foo() : m_ptr(new int) {}\n"
|
||||
" ~Foo() { delete m_ptr; }\n"
|
||||
"private:\n"
|
||||
" int* m_ptr;\n"
|
||||
"};");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
checkCopyConstructor("class Copyable {};\n"
|
||||
"\n"
|
||||
"class Foo : public UnknownType, public Copyable {\n"
|
||||
"public:\n"
|
||||
" Foo() : m_ptr(new int) {}\n"
|
||||
" ~Foo() { delete m_ptr; }\n"
|
||||
"private:\n"
|
||||
" int* m_ptr;\n"
|
||||
"};");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
}
|
||||
|
||||
void noOperatorEq() {
|
||||
|
|
Loading…
Reference in New Issue