xmlsecurity/source/xmlsec/nss/nssinitializer.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit f6f19c7ac5a324aa66055cf0ced18152ae21891b Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Jun 2 18:47:23 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Jun 2 20:32:00 2022 +0200 Use more appropriate index variable types Change-Id: I8d82591c12642d66344f70997c5cf40e937569b4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135322 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx index 80d4e108ac3e..29b26734e04a 100644 --- a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx +++ b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx @@ -41,6 +41,7 @@ #include "digestcontext.hxx" #include "ciphercontext.hxx" +#include <cstddef> #include <memory> #include <vector> @@ -222,7 +223,7 @@ const OUString & ONSSInitializer::getMozillaCurrentProfile(const css::uno::Refer if (xMozillaBootstrap.is()) { - for (int i=0; i<int(SAL_N_ELEMENTS(productTypes)); ++i) + for (std::size_t i=0; i<SAL_N_ELEMENTS(productTypes); ++i) { OUString profile = xMozillaBootstrap->getDefaultProfile(productTypes[i]); @@ -262,7 +263,7 @@ css::uno::Sequence<css::xml::crypto::NSSProfile> SAL_CALL ONSSInitializer::getNS if (xMozillaBootstrap.is()) { - for (int i=0; i<int(SAL_N_ELEMENTS(productTypes)); ++i) + for (std::size_t i=0; i<SAL_N_ELEMENTS(productTypes); ++i) { uno::Sequence<OUString> aProductProfileList; xMozillaBootstrap->getProfileList(productTypes[i], aProductProfileList);