diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-03-02 10:41:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-03-03 08:48:27 +0100 |
commit | c2d1d20927af6f265080f041a9aba04733be26fb (patch) | |
tree | 979ca18cedb7165f807ee7afd1250e54e94370a5 | |
parent | 06d918dcc47ae3f1c511cbdccfeacc8adb123f28 (diff) |
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@redhat.com>
-rw-r--r-- | svx/source/tbxctrls/StylesPreviewWindow.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |