svx/source/tbxctrls/StylesPreviewWindow.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c2d1d20927af6f265080f041a9aba04733be26fb
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Tue Mar 2 10:41:47 2021 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Wed Mar 3 08:48:27 2021 +0100

    loplugin:loopvartoosmall (clang-cl)
    
    "loop index type 'unsigned long' is narrower than length type
    'std::vector<std::pair<rtl::OUString, rtl::OUString>>::size_type' (aka 
'unsigned
    long long')"
    
    Change-Id: I715cb27367c957bebe218371d3813758e4988759
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111809
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/svx/source/tbxctrls/StylesPreviewWindow.cxx 
b/svx/source/tbxctrls/StylesPreviewWindow.cxx
index af151d19a139..f392c2fc90de 100644
--- a/svx/source/tbxctrls/StylesPreviewWindow.cxx
+++ b/svx/source/tbxctrls/StylesPreviewWindow.cxx
@@ -398,7 +398,7 @@ void StylesPreviewWindow_Base::Update()
 {
     UpdateStylesList();
 
-    for (unsigned long i = 0; i < m_aAllStyles.size(); ++i)
+    for (std::vector<std::pair<OUString, OUString>>::size_type i = 0; i < 
m_aAllStyles.size(); ++i)
     {
         if (m_aAllStyles[i].first == m_sSelectedStyle || 
m_aAllStyles[i].second == m_sSelectedStyle)
         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to