diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-01 10:38:57 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-01 20:21:04 -0500 |
commit | 2a7c07e2e5fbdce057aaecb87231c62d98981bcb (patch) | |
tree | f18fb28b3ec85955de96e5cdce6a74ea5b38186a /sc | |
parent | 513bbdf9c4664e2677537acb9387df84349529cd (diff) |
InsertData to AppendData, to hide the insert position.
Only a few places in sc specified insert position, and those were
not strictly necessary.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/drwlayer.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/shapeuno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsh9.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index 64935132d7e7..e781e605183d 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -1836,7 +1836,7 @@ ScDrawObjData* ScDrawLayer::GetObjData( SdrObject* pObj, sal_Bool bCreate ) if( pObj && bCreate ) { ScDrawObjData* pData = new ScDrawObjData; - pObj->InsertUserData( pData, 0 ); + pObj->AppendUserData(pData); return pData; } return 0; @@ -1945,7 +1945,7 @@ ScMacroInfo* ScDrawLayer::GetMacroInfo( SdrObject* pObj, sal_Bool bCreate ) if ( bCreate ) { ScMacroInfo* pData = new ScMacroInfo; - pObj->InsertUserData( pData, 0 ); + pObj->AppendUserData(pData); return pData; } return 0; diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx index f794994bb0fe..efbce663d2bd 100644 --- a/sc/source/ui/unoobj/shapeuno.cxx +++ b/sc/source/ui/unoobj/shapeuno.cxx @@ -470,7 +470,7 @@ void SAL_CALL ScShapeObj::setPropertyValue( else { // insert new user data with image map - pObj->InsertUserData(new ScIMapInfo(aImageMap) ); + pObj->AppendUserData(new ScIMapInfo(aImageMap) ); } } } diff --git a/sc/source/ui/view/tabvwsh9.cxx b/sc/source/ui/view/tabvwsh9.cxx index c4c1133232d1..931ec01e9b3d 100644 --- a/sc/source/ui/view/tabvwsh9.cxx +++ b/sc/source/ui/view/tabvwsh9.cxx @@ -207,7 +207,7 @@ void ScTabViewShell::ExecImageMap( SfxRequest& rReq ) ScIMapInfo* pIMapInfo = ScDrawLayer::GetIMapInfo( pSdrObj ); if ( !pIMapInfo ) - pSdrObj->InsertUserData( new ScIMapInfo( rImageMap ) ); + pSdrObj->AppendUserData( new ScIMapInfo( rImageMap ) ); else pIMapInfo->SetImageMap( rImageMap ); |