diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-19 00:27:45 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-19 00:27:45 +0200 |
commit | b2ac4def24379db588ffa52ca63676710f18b4fc (patch) | |
tree | 09a76cb672d032cd6b8f41fd3f5afc6c3836839f /src/resources/wallpaper.cpp | |
parent | f4792bc06f21335fc2d1171d937ea7645ca0c253 (diff) | |
download | plus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.gz plus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.bz2 plus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.xz plus-b2ac4def24379db588ffa52ca63676710f18b4fc.zip |
Fix code style and add small optimisations.
Diffstat (limited to 'src/resources/wallpaper.cpp')
-rw-r--r-- | src/resources/wallpaper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/wallpaper.cpp b/src/resources/wallpaper.cpp index 936e72ca0..a2e3861e9 100644 --- a/src/resources/wallpaper.cpp +++ b/src/resources/wallpaper.cpp @@ -154,7 +154,7 @@ std::string Wallpaper::getWallpaper(int width, int height) if (!wallPaperVector.empty()) { // If we've got more than one occurence of a valid wallpaper... - if (wallPaperVector.size() > 0) + if (!wallPaperVector.empty()) { // Return randomly a wallpaper between vector[0] and // vector[vector.size() - 1] |