summaryrefslogtreecommitdiff
path: root/reportdesign/source/ui/report/ReportSection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'reportdesign/source/ui/report/ReportSection.cxx')
-rw-r--r--reportdesign/source/ui/report/ReportSection.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx
index 846601146e0f..544dfb203638 100644
--- a/reportdesign/source/ui/report/ReportSection.cxx
+++ b/reportdesign/source/ui/report/ReportSection.cxx
@@ -778,12 +778,10 @@ sal_Int8 OReportSection::ExecuteDrop( const ExecuteDropEvent& _rEvt )
else
aValues = svx::OMultiColumnTransferable::extractDescriptor(aDropped);
- beans::PropertyValue* pIter = aValues.getArray();
- beans::PropertyValue* pEnd = pIter + aValues.getLength();
- for(;pIter != pEnd; ++pIter)
+ for(beans::PropertyValue & propVal : aValues)
{
uno::Sequence<beans::PropertyValue> aCurrent;
- pIter->Value >>= aCurrent;
+ propVal.Value >>= aCurrent;
sal_Int32 nLength = aCurrent.getLength();
if ( nLength )
{
@@ -796,7 +794,7 @@ sal_Int8 OReportSection::ExecuteDrop( const ExecuteDropEvent& _rEvt )
aCurrent[nLength].Name = "Section";
aCurrent[nLength++].Value <<= getSection();
- pIter->Value <<= aCurrent;
+ propVal.Value <<= aCurrent;
}
}