[Libreoffice-commits] .: svx/source

Tor Lillqvist tml at kemper.freedesktop.org
Fri Jun 17 02:13:20 PDT 2011


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

New commits:
commit 5ac4b2cf0ca74bc2e20931041804e936082784a8
Author: Rafael Dominguez <venccsralph at gmail.com>
Date:   Thu Jun 16 21:03:27 2011 -0430

    Replace List with std::vector<basegfx::B3DHomMatrix*>.

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;
             }


More information about the Libreoffice-commits mailing list