You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/testconstructors.cpp
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1948,7 +1948,7 @@ class TestConstructors : public TestFixture {
1948
1948
}
1949
1949
1950
1950
voidinitvar_smartptr() { // #10237
1951
-
const Settings s = settingsBuilder() /*.library("std.cfg")*/.build();
1951
+
staticconst Settings s = settingsBuilder() /*.library("std.cfg")*/.build();
1952
1952
check("struct S {\n"
1953
1953
" explicit S(const std::shared_ptr<S>& sp) {\n"
1954
1954
" set(*sp);\n"
@@ -1990,7 +1990,7 @@ class TestConstructors : public TestFixture {
1990
1990
"{ }", true);
1991
1991
ASSERT_EQUALS("[test.cpp:13]: (warning, inconclusive) Member variable 'Fred::ints' is not assigned a value in 'Fred::operator='.\n", errout.str());
1992
1992
1993
-
const Settings s = settingsBuilder().certainty(Certainty::inconclusive).severity(Severity::style).severity(Severity::warning).library("std.cfg").build();
1993
+
staticconst Settings s = settingsBuilder().certainty(Certainty::inconclusive).severity(Severity::style).severity(Severity::warning).library("std.cfg").build();
1994
1994
check("struct S {\n"
1995
1995
" S& operator=(const S& s) { return *this; }\n"
1996
1996
" std::mutex m;\n"
@@ -3580,7 +3580,7 @@ class TestConstructors : public TestFixture {
3580
3580
}
3581
3581
3582
3582
voiduninitVarInheritClassInit() {
3583
-
const Settings s = settingsBuilder() /*.library("vcl.cfg")*/.build();
3583
+
staticconst Settings s = settingsBuilder() /*.library("vcl.cfg")*/.build();
0 commit comments