summaryrefslogtreecommitdiff
path: root/src/gui/models/tablemodel.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-10-19 06:55:28 +0300
committerAndrei Karas <akaras@inbox.ru>2018-10-19 06:55:28 +0300
commit98c74738f21d7ae256f1273b6c1614ee64e2a3ad (patch)
tree95a1af0071c774021c781611d215fee84358a807 /src/gui/models/tablemodel.cpp
parenta0b050fd82177f38b8bbf3360159d57886e2a347 (diff)
downloadmanaverse-98c74738f21d7ae256f1273b6c1614ee64e2a3ad.tar.gz
manaverse-98c74738f21d7ae256f1273b6c1614ee64e2a3ad.tar.bz2
manaverse-98c74738f21d7ae256f1273b6c1614ee64e2a3ad.tar.xz
manaverse-98c74738f21d7ae256f1273b6c1614ee64e2a3ad.zip
Fix code style.
Diffstat (limited to 'src/gui/models/tablemodel.cpp')
-rw-r--r--src/gui/models/tablemodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/models/tablemodel.cpp b/src/gui/models/tablemodel.cpp
index 3f9c262c7..7399ca31f 100644
--- a/src/gui/models/tablemodel.cpp
+++ b/src/gui/models/tablemodel.cpp
@@ -168,12 +168,12 @@ int StaticTableModel::getColumns() const
int StaticTableModel::getWidth() const
{
- int width = 0;
+ size_t width = 0;
for (size_t i = 0, sz = mWidths.size(); i < sz; i++)
- width += mWidths[i];
+ width += CAST_SIZE(mWidths[i]);
- return width;
+ return CAST_S32(width);
}
int StaticTableModel::getHeight() const