summaryrefslogtreecommitdiff
path: root/src/configmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-08 01:22:43 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-08 01:22:43 +0300
commit34a83475636164cf43551d9ec83ec30da5a7e7f2 (patch)
treec6b3e22f789422e06a96c2ca87dd94fc61eb1dd1 /src/configmanager.cpp
parentaf4fcff19a986990d58c50c62bc498690c8293b8 (diff)
downloadplus-34a83475636164cf43551d9ec83ec30da5a7e7f2.tar.gz
plus-34a83475636164cf43551d9ec83ec30da5a7e7f2.tar.bz2
plus-34a83475636164cf43551d9ec83ec30da5a7e7f2.tar.xz
plus-34a83475636164cf43551d9ec83ec30da5a7e7f2.zip
Replace size() to empty() where is possible
Diffstat (limited to 'src/configmanager.cpp')
-rw-r--r--src/configmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configmanager.cpp b/src/configmanager.cpp
index f9c7c447e..c2e7a4c02 100644
--- a/src/configmanager.cpp
+++ b/src/configmanager.cpp
@@ -181,7 +181,7 @@ void ConfigManager::backupConfig(const std::string &name)
}
if (Files::loadTextFileLocal(fileName3, arr) == true)
{
- if (arr.size() == 0)
+ if (arr.empty())
return;
arr.clear();
@@ -189,7 +189,7 @@ void ConfigManager::backupConfig(const std::string &name)
name).append(".tmp");
Files::copyFile(fileName3, tmpName);
if (Files::loadTextFileLocal(tmpName, arr) == false ||
- arr.size() == 0)
+ arr.empty())
{
logger->safeError("Error backuping configs. "
"Probably no free space on disk.");