Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index



From a1c62ee08fcb1c1ff467b52b972d778adb072781 Mon Sep 17 00:00:00 2001
From: Rafael Dominguez <venccsralph@gmail.com>
Date: Thu, 16 Jun 2011 21:03:27 -0430
Subject: [PATCH 2/2] Replace List with std::vector<basegfx::B3DHomMatrix*>.

---
 svx/source/unodraw/unoshap3.cxx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/svx/source/unodraw/unoshap3.cxx b/svx/source/unodraw/unoshap3.cxx
index 21a7f7f..8842d1d 100644
--- a/svx/source/unodraw/unoshap3.cxx
+++ b/svx/source/unodraw/unoshap3.cxx
@@ -362,13 +362,13 @@ bool Svx3DSceneObject::setPropertyValueImpl( const ::rtl::OUString& rName, 
const
 
             // rescue object transformations
             SdrObjListIter aIter(*pScene->GetSubList(), IM_DEEPWITHGROUPS);
-            List aObjTrans;
+            std::vector<basegfx::B3DHomMatrix*> aObjTrans;
             while(aIter.IsMore())
             {
                 E3dObject* p3DObj = (E3dObject*)aIter.Next();
                 basegfx::B3DHomMatrix* pNew = new basegfx::B3DHomMatrix;
                 *pNew = p3DObj->GetTransform();
-                aObjTrans.Insert(pNew, LIST_APPEND);
+                aObjTrans.push_back(pNew);
             }
 
             // reset object transformations
@@ -422,7 +422,7 @@ bool Svx3DSceneObject::setPropertyValueImpl( const ::rtl::OUString& rName, const
             while(aIter.IsMore())
             {
                 E3dObject* p3DObj = (E3dObject*)aIter.Next();
-                basegfx::B3DHomMatrix* pMat = 
(basegfx::B3DHomMatrix*)aObjTrans.GetObject(nIndex++);
+                basegfx::B3DHomMatrix* pMat = aObjTrans[nIndex++];
                 p3DObj->NbcSetTransform(*pMat);
                 delete pMat;
             }
-- 
1.7.3.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.