diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-05-31 20:40:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-05-31 22:42:34 +0200 |
commit | bd279d30025e13125e9c5736f7baa9b00484156d (patch) | |
tree | 60cb29f9664c794e0cee41b75546a161b5787991 /basic | |
parent | d1cdf9a24de0d87f22e283f5cb2ed93ff6e83ee6 (diff) |
Use more appropriate index variable type
Change-Id: I0a6de93876d316a1aa094cf98dc2ee5c7eddebbf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135205
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/sbx/sbxarray.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/basic/source/sbx/sbxarray.cxx b/basic/source/sbx/sbxarray.cxx index 4bd933b126ad..ec95e5e10602 100644 --- a/basic/source/sbx/sbxarray.cxx +++ b/basic/source/sbx/sbxarray.cxx @@ -24,6 +24,7 @@ #include <basic/sbx.hxx> #include <runtime.hxx> +#include <cstddef> #include <optional> struct SbxVarEntry @@ -562,7 +563,7 @@ bool SbxDimArray::StoreData( SvStream& rStrm ) const { assert(m_vDimensions.size() <= sal::static_int_cast<size_t>(std::numeric_limits<sal_Int16>::max())); rStrm.WriteInt16( m_vDimensions.size() ); - for( sal_Int32 i = 1; i <= static_cast<sal_Int32>(m_vDimensions.size()); i++ ) + for( std::size_t i = 1; i <= m_vDimensions.size(); i++ ) { sal_Int32 lb32, ub32; GetDim(i, lb32, ub32); |