summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-18 22:09:07 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-18 22:09:07 +0300
commit18f877c15f9e31a9675fff4afe2c0b224bcdefd9 (patch)
tree8c01fc98bda6462484d075b22d29ee23932f8ba1 /src
parentb851d777aef4b13917e22d75292f596232ce03a0 (diff)
downloadplus-18f877c15f9e31a9675fff4afe2c0b224bcdefd9.tar.gz
plus-18f877c15f9e31a9675fff4afe2c0b224bcdefd9.tar.bz2
plus-18f877c15f9e31a9675fff4afe2c0b224bcdefd9.tar.xz
plus-18f877c15f9e31a9675fff4afe2c0b224bcdefd9.zip
Fix code style in configmanager.
Diffstat (limited to 'src')
-rw-r--r--src/configmanager.cpp10
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 --)