diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-01 19:58:05 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-01 20:00:29 +0400 |
commit | bc8fa08a7ae48f68ee5578cb7820336c70898202 (patch) | |
tree | 470f439b2e5e72c629fd238428fe6a97855e1ba8 /sd/source/ui/app | |
parent | a31acd6b405777aa3ccb7298fabbe8b4aba55a32 (diff) |
pointer -> reference
Diffstat (limited to 'sd/source/ui/app')
-rw-r--r-- | sd/source/ui/app/sdxfer.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index fe56d11ffc80..009a1b4a3e77 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -282,7 +282,7 @@ void SdTransferable::CreateData() mpVDev = new VirtualDevice( *Application::GetDefaultDevice() ); mpVDev->SetMapMode( MapMode( mpSdDrawDocumentIntern->GetScaleUnit(), Point(), mpSdDrawDocumentIntern->GetScaleFraction(), mpSdDrawDocumentIntern->GetScaleFraction() ) ); - mpSdViewIntern = new ::sd::View( mpSdDrawDocumentIntern, mpVDev ); + mpSdViewIntern = new ::sd::View( *mpSdDrawDocumentIntern, mpVDev ); mpSdViewIntern->EndListening(*mpSdDrawDocumentIntern ); mpSdViewIntern->hideMarkHandles(); SdrPageView* pPageView = mpSdViewIntern->ShowSdrPage(pPage); @@ -518,12 +518,10 @@ sal_Bool SdTransferable::GetData( const DataFlavor& rFlavor ) if( mpSdViewIntern ) { - SdDrawDocument* pInternDoc = mpSdViewIntern->GetDoc(); - if( pInternDoc ) - pInternDoc->CreatingDataObj(this); + SdDrawDocument& rInternDoc = mpSdViewIntern->GetDoc(); + rInternDoc.CreatingDataObj(this); SdDrawDocument* pDoc = dynamic_cast< SdDrawDocument* >( mpSdViewIntern->GetAllMarkedModel() ); - if( pInternDoc ) - pInternDoc->CreatingDataObj(0); + rInternDoc.CreatingDataObj(0); bOK = SetObject( pDoc, SDTRANSFER_OBJECTTYPE_DRAWMODEL, rFlavor ); |