Kaydet (Commit) 7ec010c8 authored tarafından Julien Nabet's avatar Julien Nabet

Use const_iterator and put them in for loop

Change-Id: I1dbfe5735580d940081298c372c12db8a3c3b3a3
üst 733f9f92
...@@ -84,9 +84,7 @@ Sequence< ::Property > SAL_CALL ChainablePropertySetInfo::getProperties() ...@@ -84,9 +84,7 @@ Sequence< ::Property > SAL_CALL ChainablePropertySetInfo::getProperties()
maProperties.realloc ( nSize ); maProperties.realloc ( nSize );
Property* pProperties = maProperties.getArray(); Property* pProperties = maProperties.getArray();
PropertyInfoHash::iterator aIter = maMap.begin(); for (PropertyInfoHash::const_iterator aIter(maMap.begin()), aEnd(maMap.end()); aIter != aEnd; ++aIter, ++pProperties)
const PropertyInfoHash::iterator aEnd = maMap.end();
for ( ; aIter != aEnd; ++aIter, ++pProperties)
{ {
PropertyInfo* pInfo = (*aIter).second; PropertyInfo* pInfo = (*aIter).second;
......
...@@ -101,9 +101,7 @@ Sequence< ::Property > SAL_CALL MasterPropertySetInfo::getProperties() ...@@ -101,9 +101,7 @@ Sequence< ::Property > SAL_CALL MasterPropertySetInfo::getProperties()
maProperties.realloc ( nSize ); maProperties.realloc ( nSize );
Property* pProperties = maProperties.getArray(); Property* pProperties = maProperties.getArray();
PropertyDataHash::iterator aIter = maMap.begin(); for (PropertyDataHash::const_iterator aIter(maMap.begin()), aEnd(maMap.end()) ; aIter != aEnd; ++aIter, ++pProperties)
const PropertyDataHash::iterator aEnd = maMap.end();
for ( ; aIter != aEnd; ++aIter, ++pProperties)
{ {
PropertyInfo* pInfo = (*aIter).second->mpInfo; PropertyInfo* pInfo = (*aIter).second->mpInfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment