Commit a2c9ed8f authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Initialize member.

parent 097cb222
......@@ -39,6 +39,7 @@
#include <QDomDocument>
TestCourseFiles::TestCourseFiles()
: m_systemUseCourseRepositoryValue(Settings::useCourseRepository())
{
}
......@@ -51,7 +52,6 @@ void TestCourseFiles::init()
// KGlobal::dirs()->addResourceDir("appdata" , "./autotests/");
// KGlobal::dirs()->addResourceDir("appdata" , "./autotests/testcourses/");
systemUseCourseRepositoryValue = Settings::useCourseRepository();
Settings::setUseCourseRepository(false);
Settings::self()->save();
}
......@@ -59,7 +59,7 @@ void TestCourseFiles::init()
void TestCourseFiles::cleanup()
{
// reset value
Settings::setUseCourseRepository(systemUseCourseRepositoryValue);
Settings::setUseCourseRepository(m_systemUseCourseRepositoryValue);
Settings::self()->save();
}
......
......@@ -54,7 +54,7 @@ private slots:
void fileLoadSaveCompleteness();
private:
bool systemUseCourseRepositoryValue;
bool m_systemUseCourseRepositoryValue;
};
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment