summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unoprov.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-07-31 00:52:12 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-07-31 00:52:12 +0200
commit4f4139a28679794b8372ea723a78c8834c56843e (patch)
tree276c553b0cd4166f31f4ef42d444b83054ae093d /svx/source/unodraw/unoprov.cxx
parent1f7b66104dcb8ccad3efd2bd116c42e090ee9981 (diff)
Some cppcheck cleaning + 2 fixes of last commit
Diffstat (limited to 'svx/source/unodraw/unoprov.cxx')
-rw-r--r--svx/source/unodraw/unoprov.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/unodraw/unoprov.cxx b/svx/source/unodraw/unoprov.cxx
index b07eaa84206d..d9fea7e28f9b 100644
--- a/svx/source/unodraw/unoprov.cxx
+++ b/svx/source/unodraw/unoprov.cxx
@@ -893,7 +893,7 @@ rtl::OUString UHashMap::getNameFromId(sal_uInt32 nId)
{
const UHashMapImpl &rMap = GetUHashImpl();
- for (UHashMapImpl::const_iterator it = rMap.begin(); it != rMap.end(); it++)
+ for (UHashMapImpl::const_iterator it = rMap.begin(); it != rMap.end(); ++it)
{
if (it->second == nId)
return it->first;
@@ -906,12 +906,11 @@ uno::Sequence< OUString > UHashMap::getServiceNames()
{
const UHashMapImpl &rMap = GetUHashImpl();
- int i = 0;
uno::Sequence< OUString > aSeq( rMap.size() );
OUString* pStrings = aSeq.getArray();
- for (UHashMapImpl::const_iterator it = rMap.begin(); it != rMap.end(); it++)
- pStrings[i++] = it->first;
+ for (int i = 0, UHashMapImpl::const_iterator it = rMap.begin(); it != rMap.end(); ++it, ++i)
+ pStrings[i] = it->first;
return aSeq;
}