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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Oct 23 18:40:29 UTC 2019


 vcl/source/window/toolbox2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8c28f11a7ecfb2ae85bd7c07d20032eb1c4c0dd9
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Oct 23 17:42:45 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Oct 23 20:39:04 2019 +0200

    loplugin:loopvartoosmall (clang-cl)
    
    Change-Id: I637fdfe2a22a8e85c89850e6815e4b28e0584dd4
    Reviewed-on: https://gerrit.libreoffice.org/81406
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 6700c3466ff2..56f687dac2f8 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1774,7 +1774,7 @@ boost::property_tree::ptree ToolBox::DumpAsPropertyTree()
     boost::property_tree::ptree::const_assoc_iterator found = aTree.find("children");
     if (found == aTree.not_found())
     {
-        for (unsigned long i = 0; i < GetItemCount(); ++i)
+        for (ToolBox::ImplToolItems::size_type i = 0; i < GetItemCount(); ++i)
         {
             ToolBoxItemType type = GetItemType(i);
             if (type == ToolBoxItemType::BUTTON)


More information about the Libreoffice-commits mailing list