diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-18 22:09:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-18 22:09:07 +0300 |
commit | 18f877c15f9e31a9675fff4afe2c0b224bcdefd9 (patch) | |
tree | 8c01fc98bda6462484d075b22d29ee23932f8ba1 /src/configmanager.cpp | |
parent | b851d777aef4b13917e22d75292f596232ce03a0 (diff) | |
download | manaverse-18f877c15f9e31a9675fff4afe2c0b224bcdefd9.tar.gz manaverse-18f877c15f9e31a9675fff4afe2c0b224bcdefd9.tar.bz2 manaverse-18f877c15f9e31a9675fff4afe2c0b224bcdefd9.tar.xz manaverse-18f877c15f9e31a9675fff4afe2c0b224bcdefd9.zip |
Fix code style in configmanager.
Diffstat (limited to 'src/configmanager.cpp')
-rw-r--r-- | src/configmanager.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/configmanager.cpp b/src/configmanager.cpp index 8e130e315..0b452598c 100644 --- a/src/configmanager.cpp +++ b/src/configmanager.cpp @@ -129,7 +129,8 @@ void ConfigManager::initConfiguration() } if (!configFile) { - logger->log("Can't create %s. Using defaults.", configPath.c_str()); + logger->log("Can't create %s. Using defaults.", + configPath.c_str()); } else { @@ -143,8 +144,11 @@ void ConfigManager::initConfiguration() void ConfigManager::backupConfig(const std::string &name) { - const std::string confName = std::string(settings.configDir).append( - "/").append(name).append(".bak"); + const std::string confName = std::string( + settings.configDir).append( + "/").append( + name).append( + ".bak"); const int maxFileIndex = 5; ::remove((confName + toString(maxFileIndex)).c_str()); for (int f = maxFileIndex; f > 1; f --) |