From c2d1d20927af6f265080f041a9aba04733be26fb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 2 Mar 2021 10:41:47 +0100 Subject: loplugin:loopvartoosmall (clang-cl) "loop index type 'unsigned long' is narrower than length type 'std::vector>::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 --- svx/source/tbxctrls/StylesPreviewWindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') 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>::size_type i = 0; i < m_aAllStyles.size(); ++i) { if (m_aAllStyles[i].first == m_sSelectedStyle || m_aAllStyles[i].second == m_sSelectedStyle) { -- cgit