summaryrefslogtreecommitdiff
path: root/src/categories.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/categories.cpp')
-rw-r--r--src/categories.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/categories.cpp b/src/categories.cpp
index dca6311d..0b201dcf 100644
--- a/src/categories.cpp
+++ b/src/categories.cpp
@@ -19,7 +19,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "categories.h"
#include <utility.h>
-#include "report.h"
+#include <report.h>
#include <gameinfo.h>
#include <QObject>
#include <QFile>
@@ -32,12 +32,12 @@ using namespace MOBase;
using namespace MOShared;
-CategoryFactory* CategoryFactory::s_Instance = NULL;
+CategoryFactory* CategoryFactory::s_Instance = nullptr;
QString CategoryFactory::categoriesFilePath()
{
- return QCoreApplication::applicationDirPath() + "/categories.dat";
+ return qApp->property("dataPath").toString() + "/categories.dat";
}
@@ -93,7 +93,7 @@ CategoryFactory::CategoryFactory()
CategoryFactory &CategoryFactory::instance()
{
- if (s_Instance == NULL) {
+ if (s_Instance == nullptr) {
s_Instance = new CategoryFactory;
}
return *s_Instance;
@@ -133,7 +133,7 @@ void CategoryFactory::setParents()
void CategoryFactory::cleanup()
{
delete s_Instance;
- s_Instance = NULL;
+ s_Instance = nullptr;
}