summaryrefslogtreecommitdiff
path: root/src/gui/models/tablemodel.cpp
diff options
context:
space:
mode:
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