From 98c74738f21d7ae256f1273b6c1614ee64e2a3ad Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 19 Oct 2018 06:55:28 +0300 Subject: Fix code style. --- src/gui/models/tablemodel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/models') 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 -- cgit v1.2.3-60-g2f50