diff options
Diffstat (limited to 'reportdesign/source/ui/inspection/metadata.cxx')
-rw-r--r-- | reportdesign/source/ui/inspection/metadata.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/reportdesign/source/ui/inspection/metadata.cxx b/reportdesign/source/ui/inspection/metadata.cxx index d1b41f36fd70..7b3e73b8cf2b 100644 --- a/reportdesign/source/ui/inspection/metadata.cxx +++ b/reportdesign/source/ui/inspection/metadata.cxx @@ -287,15 +287,13 @@ namespace rptui ,PROPERTY_VERTICALALIGN }; - beans::Property* pPropsIter = aProps.getArray(); - beans::Property* pPropsEnd = pPropsIter + aProps.getLength(); - for (; pPropsIter != pPropsEnd; ++pPropsIter) + for (beans::Property const & prop : aProps) { size_t nPos = 0; - for (; nPos < SAL_N_ELEMENTS(pExcludeProperties) && pExcludeProperties[nPos] != pPropsIter->Name; ++nPos ) + for (; nPos < SAL_N_ELEMENTS(pExcludeProperties) && pExcludeProperties[nPos] != prop.Name; ++nPos ) ; if ( nPos == SAL_N_ELEMENTS(pExcludeProperties) ) - _rExcludeProperties.push_back(*pPropsIter); + _rExcludeProperties.push_back(prop); } } |