From 6da4fccf145b743fc673815e316038f616dbf613 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 26 Jul 2023 12:28:15 +0200 Subject: [PATCH] Some very minor code cleanup --- es-app/src/SystemData.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/es-app/src/SystemData.cpp b/es-app/src/SystemData.cpp index fa016d789..2d1017719 100644 --- a/es-app/src/SystemData.cpp +++ b/es-app/src/SystemData.cpp @@ -954,7 +954,7 @@ bool SystemData::createSystemDirectories() std::vector configPaths {getConfigPath(true)}; const std::string& rompath {FileData::getROMDirectory()}; - bool onlyProcessCustomFile = false; + bool onlyProcessCustomFile {false}; LOG(LogInfo) << "Generating ROM directory structure..."; @@ -1062,7 +1062,7 @@ bool SystemData::createSystemDirectories() std::string platform; std::string themeFolder; const std::string systemInfoFileName {"/systeminfo.txt"}; - bool replaceInfoFile = false; + bool replaceInfoFile {false}; std::ofstream systemInfoFile; name = system.child("name").text().get(); @@ -1292,8 +1292,7 @@ std::string SystemData::getGamelistPath(bool forWrite) const filePath = gamelistPath + "/gamelist.xml"; - // Make sure the directory exists if we're going to write to it, - // or crashes will happen. + // Make sure the directory exists if we're going to write to it, or crashes will happen. if (forWrite) Utils::FileSystem::createDirectory(Utils::FileSystem::getParent(filePath)); if (forWrite || Utils::FileSystem::exists(filePath))