From 009da07cef098a4ab07cb757950c2a53d6b1ba1a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 30 Aug 2011 04:58:32 +0300 Subject: Fix code style and compilation warnings. --- src/client.cpp | 4 ++-- src/gui/updaterwindow.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index bf9e34b00..843f7c961 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -544,7 +544,7 @@ Client::Client(const Options &options): loginData.username = mOptions.username; loginData.password = mOptions.password; - loginData.remember = serverConfig.getValue("remember", true); + loginData.remember = serverConfig.getValue("remember", 1); loginData.registerLogin = false; if (mCurrentServer.hostname.empty()) @@ -790,7 +790,7 @@ int Client::exec() else loginData.username = mOptions.username; - loginData.remember = serverConfig.getValue("remember", true); + loginData.remember = serverConfig.getValue("remember", 1); Net::connectToServer(mCurrentServer); diff --git a/src/gui/updaterwindow.cpp b/src/gui/updaterwindow.cpp index ba482919e..4ba1c9179 100644 --- a/src/gui/updaterwindow.cpp +++ b/src/gui/updaterwindow.cpp @@ -54,7 +54,8 @@ const std::string xmlUpdateFile = "resources.xml"; const std::string txtUpdateFile = "resources2.txt"; -const std::string updateServer2 = "http://download.evolonline.org/manaplus/updates/"; +const std::string updateServer2 + = "http://download.evolonline.org/manaplus/updates/"; std::vector loadXMLFile(const std::string &fileName); std::vector loadTxtFile(const std::string &fileName); @@ -186,7 +187,6 @@ UpdaterWindow::UpdaterWindow(const std::string &updateHost, mUpdateServerPath = mUpdateHost; removeProtocol(mUpdateServerPath); - logger->log("mUpdateServerPath: %s, %s", mUpdateHost.c_str(), mUpdateServerPath.c_str()); // Try to download the updates list download(); -- cgit v1.2.3-70-g09d2