diff --git a/test/testutils.cpp b/test/testutils.cpp index 692ae2260..a3d555b52 100644 --- a/test/testutils.cpp +++ b/test/testutils.cpp @@ -16,10 +16,12 @@ * along with this program. If not, see . */ - +#include "testutils.h" #include "testsuite.h" #include "utils.h" +const Settings givenACodeSampleToTokenize::settings; + class TestUtils : public TestFixture { public: TestUtils() : TestFixture("TestUtils") { diff --git a/test/testutils.h b/test/testutils.h index a44de78ab..14cf3071d 100644 --- a/test/testutils.h +++ b/test/testutils.h @@ -26,8 +26,8 @@ class Token; class givenACodeSampleToTokenize { private: - Settings settings; Tokenizer tokenizer; + static const Settings settings; public: explicit givenACodeSampleToTokenize(const char sample[], bool createOnly = false, bool cpp = true)