From 59919635523d41f3a15120c83db4b7d080c155de Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 24 Mar 2024 19:17:41 +0100 Subject: General code cleanups * Removed some unused includes * Removed unused ListBox::mFont * Removed wrong cast to SDL_Scancode * Removed superfluous .c_str() * Removed superfluous explicit std::string construction * Removed unused variable * Use more emplace_back * Turned FindBeingFunctor into a lambda * Avoid needless pointer references for ambient layers and use a vector --- src/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 8e144e8e..2a854bc0 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -226,12 +226,12 @@ Client::Client(const Options &options): chatLogger = new ChatLogger; if (options.chatLogDir.empty()) - chatLogger->setLogDir(mLocalDataDir + std::string("/logs/")); + chatLogger->setLogDir(mLocalDataDir + "/logs/"); else chatLogger->setLogDir(options.chatLogDir); // Configure logger - logger->setLogFile(mLocalDataDir + std::string("/mana.log")); + logger->setLogFile(mLocalDataDir + "/mana.log"); logger->setLogToStandardOut(config.getBoolValue("logToStandardOut")); // Log the mana version -- cgit v1.2.3-70-g09d2