From 10280dabe2c1c47c3cddbc28fcd701deb618772f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 13 Aug 2019 15:14:06 +0200 Subject: loplugin:constvars, look for loop vars that can be const Change-Id: I67ee714739800f3718f9d3facf57474cd564d855 Reviewed-on: https://gerrit.libreoffice.org/77415 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx index a703fb79be7f..6892052011b2 100644 --- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx @@ -836,7 +836,7 @@ xmlSecKeysMngrPtr SecurityEnvironment_NssImpl::createKeysManager() { std::unique_ptr sarSlots(new PK11SlotInfo*[cSlots]); PK11SlotInfo** slots = sarSlots.get(); int count = 0; - for (auto& slot : m_Slots) + for (const auto& slot : m_Slots) { slots[count] = slot; ++count; -- cgit v1.2.3