This commit is contained in:
Nav
2022-05-14 22:43:35 +01:00
parent f1e20c81a2
commit 72b3d271a2
4 changed files with 16 additions and 18 deletions

View File

@@ -20,7 +20,7 @@ namespace Bloom
this->setName("Bloom");
if (!arguments.empty()) {
const auto& firstArg = arguments.front();
auto& firstArg = arguments.front();
const auto commandsToCallbackMapping = this->getCommandToHandlerMapping();
if (commandsToCallbackMapping.contains(firstArg)) {
@@ -32,7 +32,7 @@ namespace Bloom
}
// If the first argument didn't map to a command, we assume it's an environment name
this->selectedEnvironmentName = firstArg;
this->selectedEnvironmentName = std::move(firstArg);
}
#ifdef BLOOM_DEBUG_BUILD
@@ -153,7 +153,7 @@ namespace Bloom
}
void Application::shutdown() {
auto appState = Thread::getThreadState();
const auto appState = Thread::getThreadState();
if (appState == ThreadState::STOPPED || appState == ThreadState::SHUTDOWN_INITIATED) {
return;
}
@@ -244,7 +244,7 @@ namespace Bloom
+ Paths::projectDirPath());
}
auto jsonObject = QJsonDocument::fromJson(jsonConfigFile.readAll()).object();
const auto jsonObject = QJsonDocument::fromJson(jsonConfigFile.readAll()).object();
jsonConfigFile.close();
this->projectConfig = ProjectConfig(jsonObject);