summaryrefslogtreecommitdiff
path: root/src/gui/models
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-10 16:46:55 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-10 16:46:55 +0300
commit608dfae22e1b5145210314ca6c7268420dd639c8 (patch)
tree5f7317be7e895a1f8aede182ea69ef56d456c54f /src/gui/models
parent9eb389060d44672c311a36348036eab297859e7e (diff)
downloadmv-608dfae22e1b5145210314ca6c7268420dd639c8.tar.gz
mv-608dfae22e1b5145210314ca6c7268420dd639c8.tar.bz2
mv-608dfae22e1b5145210314ca6c7268420dd639c8.tar.xz
mv-608dfae22e1b5145210314ca6c7268420dd639c8.zip
Fix some issues found by automatic checks.
Diffstat (limited to 'src/gui/models')
-rw-r--r--src/gui/models/modelistmodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/models/modelistmodel.cpp b/src/gui/models/modelistmodel.cpp
index 5c63cf15e..673662a48 100644
--- a/src/gui/models/modelistmodel.cpp
+++ b/src/gui/models/modelistmodel.cpp
@@ -34,13 +34,13 @@
#ifndef ANDROID
static bool modeSorter(const std::string &mode1, const std::string &mode2)
{
- const int width1 = atoi(mode1.substr(0, mode1.find("x")).c_str());
- const int height1 = atoi(mode1.substr(mode1.find("x") + 1).c_str());
+ const int width1 = atoi(mode1.substr(0, mode1.find('x')).c_str());
+ const int height1 = atoi(mode1.substr(mode1.find('x') + 1).c_str());
if (!width1 || !height1)
return false;
- const int width2 = atoi(mode2.substr(0, mode2.find("x")).c_str());
- const int height2 = atoi(mode2.substr(mode2.find("x") + 1).c_str());
+ const int width2 = atoi(mode2.substr(0, mode2.find('x')).c_str());
+ const int height2 = atoi(mode2.substr(mode2.find('x') + 1).c_str());
if (!width2 || !height2)
return false;
if (width1 != width2)