summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-06-02 18:47:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-06-02 20:32:00 +0200
commitf6f19c7ac5a324aa66055cf0ced18152ae21891b (patch)
tree0ebae47c84944aaff08b901856d3b8e7da75f0c2 /xmlsecurity
parent7eaa764d1d16a72d66a817046f8392c6f9c9a680 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/xmlsec/nss/nssinitializer.cxx5
1 files changed, 3 insertions, 2 deletions
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);