diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-08 01:22:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-08 01:22:43 +0300 |
commit | 34a83475636164cf43551d9ec83ec30da5a7e7f2 (patch) | |
tree | c6b3e22f789422e06a96c2ca87dd94fc61eb1dd1 /src/configmanager.cpp | |
parent | af4fcff19a986990d58c50c62bc498690c8293b8 (diff) | |
download | mv-34a83475636164cf43551d9ec83ec30da5a7e7f2.tar.gz mv-34a83475636164cf43551d9ec83ec30da5a7e7f2.tar.bz2 mv-34a83475636164cf43551d9ec83ec30da5a7e7f2.tar.xz mv-34a83475636164cf43551d9ec83ec30da5a7e7f2.zip |
Replace size() to empty() where is possible
Diffstat (limited to 'src/configmanager.cpp')
-rw-r--r-- | src/configmanager.cpp | 4 |
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."); |