Running astyle [ci skip]
This commit is contained in:
parent
98335e5d5f
commit
260eb4acac
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue