this commit is too big

This commit is contained in:
fourtf
2018-08-02 14:23:27 +02:00
parent 3b3c5d8d75
commit c2e2dfb577
186 changed files with 3626 additions and 2656 deletions
+3 -15
View File
@@ -14,6 +14,8 @@ Paths *Paths::instance = nullptr;
Paths::Paths()
{
this->instance = this;
this->initAppFilePathHash();
this->initCheckPortable();
@@ -21,20 +23,6 @@ Paths::Paths()
this->initSubDirectories();
}
void Paths::initInstance()
{
assert(!instance);
instance = new Paths();
}
Paths *Paths::getInstance()
{
assert(instance);
return instance;
}
bool Paths::createFolder(const QString &folderPath)
{
return QDir().mkpath(folderPath);
@@ -116,7 +104,7 @@ void Paths::initSubDirectories()
Paths *getPaths()
{
return Paths::getInstance();
return Paths::instance;
}
} // namespace chatterino