summaryrefslogtreecommitdiff
path: root/sd/source/ui/view
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-06-24 21:40:32 +0100
committerNoel Power <noel.power@suse.com>2013-06-24 21:40:32 +0100
commitee51444ed1f7003dafc93c8181b5f8c1b0fd165b (patch)
treefbe9f1aa3b27f33f112ddaecc67629de75ac63b5 /sd/source/ui/view
parent1680a8cd4f4393ec15c4f85cb63b6654117d56d1 (diff)
fix borders unit test ( test values have changed )
Change-Id: I1205eddf83781bef655abe4a1293c691bc5f1c41
Diffstat (limited to 'sd/source/ui/view')
-rw-r--r--sd/source/ui/view/drviews1.cxx7
-rw-r--r--sd/source/ui/view/sdview5.cxx5
-rw-r--r--sd/source/ui/view/viewoverlaymanager.cxx5
3 files changed, 10 insertions, 7 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx
index fe0f1dd598d8..8ad0ce36ce80 100644
--- a/sd/source/ui/view/drviews1.cxx
+++ b/sd/source/ui/view/drviews1.cxx
@@ -1059,11 +1059,12 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage)
{
// set pages for all available handout presentation objects
sd::ShapeList& rShapeList = pMaster->GetPresentationShapeList();
- SdrObject* pObj = 0;
- rShapeList.seekShape(0);
- while( (pObj = rShapeList.getNextShape()) )
+ for( ShapeList::const_iterator aIter( rShapeList.cbegin() );
+ aIter != rShapeList.cend(); ++aIter )
{
+ SdrObject* pObj = *aIter;
+
if( pMaster->GetPresObjKind(pObj) == PRESOBJ_HANDOUT )
{
// #i105146# We want no content to be displayed for PK_HANDOUT,
diff --git a/sd/source/ui/view/sdview5.cxx b/sd/source/ui/view/sdview5.cxx
index 9023d028ad49..3cb082970873 100644
--- a/sd/source/ui/view/sdview5.cxx
+++ b/sd/source/ui/view/sdview5.cxx
@@ -101,9 +101,10 @@ SdrObject* View::GetEmptyPresentationObject( PresObjKind eKind )
// last try to find empty pres obj of multiple type
if( !pEmptyObj )
{
- const std::list< SdrObject* >& rShapes = pPage->GetPresentationShapeList().getList();
+ ShapeList& rShapeList = pPage->GetPresentationShapeList();
- for( std::list< SdrObject* >::const_iterator iter( rShapes.begin() ); iter != rShapes.end(); ++iter )
+ for( ShapeList::const_iterator iter( rShapeList.cbegin() );
+ iter != rShapeList.cend(); ++iter )
{
if( (*iter)->IsEmptyPresObj() && implIsMultiPresObj(pPage->GetPresObjKind(*iter)) )
{
diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx
index e834999a5350..f5c6bc688d22 100644
--- a/sd/source/ui/view/viewoverlaymanager.cxx
+++ b/sd/source/ui/view/viewoverlaymanager.cxx
@@ -546,9 +546,10 @@ bool ViewOverlayManager::CreateTags()
if( pPage && !pPage->IsMasterPage() && (pPage->GetPageKind() == PK_STANDARD) )
{
- const std::list< SdrObject* >& rShapes = pPage->GetPresentationShapeList().getList();
+ ShapeList& rShapeList = pPage->GetPresentationShapeList();
- for( std::list< SdrObject* >::const_iterator iter( rShapes.begin() ); iter != rShapes.end(); ++iter )
+ for( ShapeList::const_iterator iter( rShapeList.cbegin() );
+ iter != rShapeList.cend(); ++iter )
{
if( (*iter)->IsEmptyPresObj() && ((*iter)->GetObjIdentifier() == OBJ_OUTLINETEXT) && (mrBase.GetDrawView()->GetTextEditObject() != (*iter)) )
{