this commit is too big
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user