Renamed variables to clear some warnings.

This commit is contained in:
23rd
2019-05-08 09:51:14 +03:00
committed by pajlada
parent efec76df5b
commit 9654650bee
19 changed files with 73 additions and 109 deletions
+3 -5
View File
@@ -37,7 +37,7 @@ bool Paths::isPortable()
QString Paths::cacheDirectory()
{
static QStringSetting cachePathSetting = [] {
static const auto path = [] {
QStringSetting cachePathSetting("/cache/path");
cachePathSetting.connect([](const auto &newPath, auto) {
@@ -45,11 +45,9 @@ QString Paths::cacheDirectory()
});
return cachePathSetting;
}();
}().getValue();
auto path = cachePathSetting.getValue();
if (path == "")
if (path.isEmpty())
{
return this->cacheDirectory_;
}