sw/qa/core/txtnode/justify.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 26143512e590892e2371253f48216c8867229b5e Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon May 30 22:48:08 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon May 30 23:32:55 2022 +0200 Use more appropriate index variable type Change-Id: Ieb3ed7931361e38ce62cd4dfa98b9712e4181d03 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135145 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sw/qa/core/txtnode/justify.cxx b/sw/qa/core/txtnode/justify.cxx index 88ae8bef3865..ec63c2b8c5a4 100644 --- a/sw/qa/core/txtnode/justify.cxx +++ b/sw/qa/core/txtnode/justify.cxx @@ -9,6 +9,7 @@ #include <swmodeltestbase.hxx> #include <justify.hxx> +#include <cstddef> #include <vector> namespace @@ -54,7 +55,7 @@ std::ostream& operator<<(std::ostream& rStrm, const CharWidthArray& rCharWidthAr void CharWidthArray::ConvertToKernArray() { - for (sal_Int32 i = 1; i < sal_Int32(maArray.size()); ++i) + for (std::size_t i = 1; i < maArray.size(); ++i) maArray[i] += maArray[i - 1]; }