[Libreoffice-commits] core.git: svx/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Wed Mar 3 07:49:16 UTC 2021
svx/source/tbxctrls/StylesPreviewWindow.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c2d1d20927af6f265080f041a9aba04733be26fb
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Mar 2 10:41:47 2021 +0100
Commit: Stephan Bergmann <sbergman at 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 <sbergman at 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)
{
More information about the Libreoffice-commits
mailing list