diff options
Diffstat (limited to 'slideshow/source/engine/slide/slideimpl.cxx')
-rw-r--r-- | slideshow/source/engine/slide/slideimpl.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx index ee119ce4549d..f762768b4dad 100644 --- a/slideshow/source/engine/slide/slideimpl.cxx +++ b/slideshow/source/engine/slide/slideimpl.cxx @@ -816,15 +816,12 @@ void SlideImpl::drawPolygons() const void SlideImpl::addPolygons(const PolyPolygonVector& rPolygons) { - if(!rPolygons.empty()) + for( PolyPolygonVector::const_iterator aIter = rPolygons.begin(), + aEnd = rPolygons.end(); + aIter!=aEnd; + ++aIter ) { - for( PolyPolygonVector::const_iterator aIter = rPolygons.begin(), - aEnd = rPolygons.end(); - aIter!=aEnd; - ++aIter ) - { - maPolygons.push_back(*aIter); - } + maPolygons.push_back(*aIter); } } |