[Libreoffice-commits] core.git: svtools/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Sat Jan 25 16:24:00 UTC 2020


 svtools/source/table/tablecontrol_impl.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e66496cb010956f1fbc847cc66f1e0b83d2d4836
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sat Jan 25 13:42:49 2020 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sat Jan 25 17:23:27 2020 +0100

    Use properly typed vars for iteration
    
    Change-Id: Idf97b89131891fa8c2769dd032dd5b9337a3246c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87397
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx
index d413f9e28b69..f2a7a3f8d856 100644
--- a/svtools/source/table/tablecontrol_impl.cxx
+++ b/svtools/source/table/tablecontrol_impl.cxx
@@ -789,7 +789,7 @@ namespace svt { namespace table
             {
                 // ... but the column's maximal widths are still less than we have
                 // => set them all to max
-                for ( size_t i = 0; i < size_t( colCount ); ++i )
+                for ( svt::table::TableSize i = 0; i < colCount; ++i )
                 {
                     o_newColWidthsPixel[i] = effectiveColumnLimits[i].second;
                 }
@@ -866,7 +866,7 @@ namespace svt { namespace table
             {
                 // ... but the column's minimal widths are still more than we have
                 // => set them all to min
-                for ( size_t i = 0; i < size_t( colCount ); ++i )
+                for ( svt::table::TableSize i = 0; i < colCount; ++i )
                 {
                     o_newColWidthsPixel[i] = effectiveColumnLimits[i].first;
                 }


More information about the Libreoffice-commits mailing list