[Libreoffice-commits] core.git: sw/source xmlsecurity/source
Julien Nabet
serval2412 at yahoo.fr
Sun Jan 29 09:47:07 UTC 2017
sw/source/uibase/uno/unotxdoc.cxx | 2 +-
xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 018ed00d5b40d25c6f8f40485a41026247fdc91e
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Jan 29 09:54:35 2017 +0100
cppcheck: postfix operator
Change-Id: I2b6f0c922b0e70ecbf79f60831ff5d71cd1438fb
Reviewed-on: https://gerrit.libreoffice.org/33656
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 133fc69..bbe2077 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -3189,7 +3189,7 @@ OUString SwXTextDocument::getPostIts()
SolarMutexGuard aGuard;
boost::property_tree::ptree aAnnotations;
for (std::list<SwSidebarItem*>::const_iterator i = pDocShell->GetView()->GetPostItMgr()->begin();
- i != pDocShell->GetView()->GetPostItMgr()->end(); i++ )
+ i != pDocShell->GetView()->GetPostItMgr()->end(); ++i )
{
sw::annotation::SwAnnotationWin* pWin = static_cast<sw::annotation::SwAnnotationWin*>((*i)->pPostIt.get());
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
index 769d183..915b4b6 100644
--- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
@@ -205,7 +205,7 @@ const Sequence< sal_Int8>& SecurityEnvironment_NssImpl::getUnoTunnelId() {
OUString SecurityEnvironment_NssImpl::getSecurityEnvironmentInformation()
{
OUStringBuffer buff;
- for (CIT_SLOTS is = m_Slots.begin(); is != m_Slots.end(); is++)
+ for (CIT_SLOTS is = m_Slots.begin(); is != m_Slots.end(); ++is)
{
buff.append(OUString::createFromAscii(PK11_GetTokenName(*is)));
buff.append("\n");
@@ -353,7 +353,7 @@ SecurityEnvironment_NssImpl::getPersonalCertificates()
updateSlots();
//firstly, we try to find private keys in slot
- for (CIT_SLOTS is = m_Slots.begin(); is != m_Slots.end(); is++)
+ for (CIT_SLOTS is = m_Slots.begin(); is != m_Slots.end(); ++is)
{
PK11SlotInfo *slot = *is;
SECKEYPrivateKeyList* priKeyList ;
@@ -835,7 +835,7 @@ sal_Int32 SecurityEnvironment_NssImpl::getCertificateCharacters(
}
if(priKey == nullptr)
{
- for (CIT_SLOTS is = m_Slots.begin(); is != m_Slots.end(); is++)
+ for (CIT_SLOTS is = m_Slots.begin(); is != m_Slots.end(); ++is)
{
priKey = PK11_FindPrivateKeyFromCert(*is, const_cast<CERTCertificate*>(cert), nullptr);
if (priKey)
@@ -913,7 +913,7 @@ xmlSecKeysMngrPtr SecurityEnvironment_NssImpl::createKeysManager() {
std::unique_ptr<PK11SlotInfo*[]> sarSlots(new PK11SlotInfo*[cSlots]);
PK11SlotInfo** slots = sarSlots.get();
int count = 0;
- for (CIT_SLOTS islots = m_Slots.begin();islots != m_Slots.end(); islots++, count++)
+ for (CIT_SLOTS islots = m_Slots.begin();islots != m_Slots.end(); ++islots, ++count)
slots[count] = *islots;
pKeysMngr = xmlSecNssAppliedKeysMngrCreate(slots, cSlots, handler ) ;
More information about the Libreoffice-commits
mailing list