diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-16 11:19:45 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-16 11:22:15 -0500 |
commit | c5fc0af6f551980d3e147f7d6cf1fdd320b8f1fe (patch) | |
tree | 1ffd5504f1a9ad064771d84305dbfd4b6c32cac7 /sd/source/ui/view | |
parent | fdo#59321 un-escape quotes in Windows Installer's idt files (diff) | |
download | core-c5fc0af6f551980d3e147f7d6cf1fdd320b8f1fe.tar.gz core-c5fc0af6f551980d3e147f7d6cf1fdd320b8f1fe.zip |
Remove GetAllMarkedModel() since all it does is call GetMarkedObjModel().
One less indirection makes the code a tad easier to follow.
Change-Id: I8e1113617c09f91c0cad32277ee4e32c78f9f058
Diffstat (limited to 'sd/source/ui/view')
-rw-r--r-- | sd/source/ui/view/sdview2.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/sdview3.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx index e664c01473e2..e7b82835a827 100644 --- a/sd/source/ui/view/sdview2.cxx +++ b/sd/source/ui/view/sdview2.cxx @@ -107,7 +107,7 @@ struct SdNavigatorDropEvent : public ExecuteDropEvent SD_MOD()->pTransferClip = pTransferable; mrDoc.CreatingDataObj( pTransferable ); - pTransferable->SetWorkDocument( (SdDrawDocument*) GetAllMarkedModel() ); + pTransferable->SetWorkDocument( (SdDrawDocument*) GetMarkedObjModel() ); mrDoc.CreatingDataObj( NULL ); // #112978# need to use GetAllMarkedBoundRect instead of GetAllMarkedRect to get diff --git a/sd/source/ui/view/sdview3.cxx b/sd/source/ui/view/sdview3.cxx index c19789e6e3cc..f6a59d691dcc 100644 --- a/sd/source/ui/view/sdview3.cxx +++ b/sd/source/ui/view/sdview3.cxx @@ -591,7 +591,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, // model is owned by from AllocModel() created DocShell SdDrawDocument* pSourceDoc = (SdDrawDocument*) pSourceView->GetModel(); pSourceDoc->CreatingDataObj( pOwnData ); - SdDrawDocument* pModel = (SdDrawDocument*) pSourceView->GetAllMarkedModel(); + SdDrawDocument* pModel = (SdDrawDocument*) pSourceView->GetMarkedObjModel(); bReturn = Paste( *pModel, maDropPos, pPage, nPasteOptions ); if( !pPage ) |