diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-03 09:59:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-04 00:51:57 +0000 |
commit | c6223049651d6607101ef04271773e478a429c8a (patch) | |
tree | f2bfb8c976896009409ae47780c324d3a9b51c77 /slideshow/source/engine | |
parent | 242ed97d9a74a08363e1306452bba20f06d673e4 (diff) |
V813: Decreased performance
Change-Id: Ica2563d9e8da15e19eb38246d4de54a1fcb75655
Diffstat (limited to 'slideshow/source/engine')
-rw-r--r-- | slideshow/source/engine/slide/slideimpl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx index 5549e5ebd213..7e76377a4c97 100644 --- a/slideshow/source/engine/slide/slideimpl.cxx +++ b/slideshow/source/engine/slide/slideimpl.cxx @@ -187,7 +187,7 @@ private: void startIntrinsicAnimations(); /// Add Polygons to the member maPolygons - void addPolygons(PolyPolygonVector aPolygons); + void addPolygons(const PolyPolygonVector& rPolygons); // Types // ===== @@ -874,12 +874,12 @@ void SlideImpl::drawPolygons() const mpPaintOverlay->drawPolygons(); } -void SlideImpl::addPolygons(PolyPolygonVector aPolygons) +void SlideImpl::addPolygons(const PolyPolygonVector& rPolygons) { - if(!aPolygons.empty()) + if(!rPolygons.empty()) { - for( PolyPolygonVector::iterator aIter=aPolygons.begin(), - aEnd=aPolygons.end(); + for( PolyPolygonVector::const_iterator aIter = rPolygons.begin(), + aEnd = rPolygons.end(); aIter!=aEnd; ++aIter ) { |