diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-20 11:46:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-20 11:46:24 +0200 |
commit | d50e38686cd377ef5d3b0682247d5b668ccd9264 (patch) | |
tree | fd0d88d4e8845356f28a7fe55d2b799c11824218 | |
parent | 103bc8ff3ce9df931508a172a140afdfb7af2577 (diff) |
loplugin:defaultparams
Change-Id: Ibf07815fa1a113876730382b8d14960eb7a78a0b
-rw-r--r-- | sd/source/core/drawdoc.cxx | 4 | ||||
-rw-r--r-- | sd/source/filter/eppt/eppt.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/eppt/epptso.cxx | 19 | ||||
-rw-r--r-- | sd/source/filter/ppt/pptin.cxx | 20 | ||||
-rw-r--r-- | sd/source/filter/ppt/pptinanimations.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/app/sdmod1.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/app/sdxfer.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/dlgass.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/vectdlg.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/docshell/docshel4.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/func/fuinsfil.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlideSorterController.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/tools/PreviewRenderer.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/ViewShellManager.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/drviews5.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/view/sdview.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/sdview2.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/sdview3.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/sdview4.cxx | 2 |
21 files changed, 42 insertions, 43 deletions
diff --git a/sd/source/core/drawdoc.cxx b/sd/source/core/drawdoc.cxx index 3d6ad2fae5bf..4c09e49d02b7 100644 --- a/sd/source/core/drawdoc.cxx +++ b/sd/source/core/drawdoc.cxx @@ -463,7 +463,7 @@ SdDrawDocument* SdDrawDocument::AllocSdDrawDocument() const SfxObjectCreateMode::EMBEDDED, true, meDocType ) ); pNewDocSh = static_cast< ::sd::DrawDocShell*>( pObj = mpCreatingTransferable->GetDocShell() ); - pNewDocSh->DoInitNew( NULL ); + pNewDocSh->DoInitNew(); pNewModel = pNewDocSh->GetDoc(); // Only necessary for clipboard - @@ -493,7 +493,7 @@ SdDrawDocument* SdDrawDocument::AllocSdDrawDocument() const pDoc->SetAllocDocSh(false); pDoc->mxAllocedDocShRef = new ::sd::DrawDocShell( SfxObjectCreateMode::EMBEDDED, true, meDocType); - pDoc->mxAllocedDocShRef->DoInitNew(NULL); + pDoc->mxAllocedDocShRef->DoInitNew(); pNewModel = pDoc->mxAllocedDocShRef->GetDoc(); } else diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx index 6605755d0fb8..3800571fff98 100644 --- a/sd/source/filter/eppt/eppt.cxx +++ b/sd/source/filter/eppt/eppt.cxx @@ -1288,7 +1288,7 @@ void PPTWriter::ImplWriteOLE( ) xTempStorage->CopyTo( xCleanStorage ); // create a dummy content stream, the dummy content is necessary for ppt, but not for // doc files, so we can't share code. - tools::SvRef<SotStorageStream> xStm = xCleanStorage->OpenSotStream( aPersistStream, STREAM_STD_READWRITE ); + tools::SvRef<SotStorageStream> xStm = xCleanStorage->OpenSotStream( aPersistStream ); xStm->WriteUInt32( 0 ) // no ClipboardId .WriteUInt32( 4 ) // no target device .WriteUInt32( 1 ) // aspect ratio diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index e96a7d928ae2..0a2a441e01e9 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -141,7 +141,7 @@ sal_uInt16 PPTExBulletProvider::GetId( const OString& rUniqueId, Size& rGraphicS aGraphicObject = GraphicObject( aMappedGraphic ); } } - sal_uInt32 nId = pGraphicProv->GetBlibID( aBuExPictureStream, aGraphicObject.GetUniqueID(), aRect, NULL, NULL ); + sal_uInt32 nId = pGraphicProv->GetBlibID( aBuExPictureStream, aGraphicObject.GetUniqueID(), aRect ); if ( nId && ( nId < 0x10000 ) ) nRetValue = (sal_uInt16)nId - 1; @@ -366,8 +366,7 @@ sal_uInt32 PPTWriter::ImplInsertBookmarkURL( const OUString& rBookmarkURL, const INetURLObject aBookmarkURI( rBookmarkURL ); if( aBaseURI.GetProtocol() == aBookmarkURI.GetProtocol() ) { - OUString aRelUrl( INetURLObject::GetRelURL( maBaseURI, rBookmarkURL, - INetURLObject::WAS_ENCODED, INetURLObject::DECODE_TO_IURI, RTL_TEXTENCODING_UTF8, INetURLObject::FSYS_DETECT ) ); + OUString aRelUrl( INetURLObject::GetRelURL( maBaseURI, rBookmarkURL ) ); if ( !aRelUrl.isEmpty() ) sBookmarkURL = aRelUrl; } @@ -435,8 +434,8 @@ bool PPTWriter::ImplCloseDocument() nBytesToInsert += maSoundCollection.GetSize(); nBytesToInsert += mpPptEscherEx->DrawingGroupContainerSize(); - nBytesToInsert += ImplMasterSlideListContainer( NULL ); - nBytesToInsert += ImplDocumentListContainer( NULL ); + nBytesToInsert += ImplMasterSlideListContainer(); + nBytesToInsert += ImplDocumentListContainer(); // insert nBytes into stream and adjust depending container mpPptEscherEx->InsertAtCurrentPos( nBytesToInsert, false ); @@ -2603,7 +2602,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a else if ( mType == "drawing.Line" ) { ::com::sun::star::awt::Rectangle aNewRect; - aPropOpt.CreatePolygonProperties( mXPropSet, ESCHER_CREATEPOLYGON_LINE, false, aNewRect, NULL ); + aPropOpt.CreatePolygonProperties( mXPropSet, ESCHER_CREATEPOLYGON_LINE, false, aNewRect ); maRect = MapRectangle( aNewRect ); maPosition = ::com::sun::star::awt::Point( maRect.Left(), maRect.Top() ); maSize = ::com::sun::star::awt::Size( maRect.GetWidth(), maRect.GetHeight() ); @@ -2640,7 +2639,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a mpPptEscherEx->OpenContainer( ESCHER_SpContainer ); ImplCreateShape( ESCHER_ShpInst_NotPrimitive, 0xa00, aSolverContainer ); // Flags: Connector | HasSpt ::com::sun::star::awt::Rectangle aNewRect; - aPropOpt.CreatePolygonProperties( mXPropSet, ESCHER_CREATEPOLYGON_POLYPOLYGON, false, aNewRect, NULL ); + aPropOpt.CreatePolygonProperties( mXPropSet, ESCHER_CREATEPOLYGON_POLYPOLYGON, false, aNewRect ); maRect = MapRectangle( aNewRect ); maPosition = ::com::sun::star::awt::Point( maRect.Left(), maRect.Top() ); maSize = ::com::sun::star::awt::Size( maRect.GetWidth(), maRect.GetHeight() ); @@ -2660,7 +2659,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a mpPptEscherEx->OpenContainer( ESCHER_SpContainer ); ImplCreateShape( ESCHER_ShpInst_NotPrimitive, 0xa00, aSolverContainer ); // Flags: Connector | HasSpt ::com::sun::star::awt::Rectangle aNewRect; - aPropOpt.CreatePolygonProperties( mXPropSet, ESCHER_CREATEPOLYGON_POLYLINE, false, aNewRect, NULL ); + aPropOpt.CreatePolygonProperties( mXPropSet, ESCHER_CREATEPOLYGON_POLYLINE, false, aNewRect ); maRect = MapRectangle( aNewRect ); maPosition = ::com::sun::star::awt::Point( maRect.Left(), maRect.Top() ); maSize = ::com::sun::star::awt::Size( maRect.GetWidth(), maRect.GetHeight() ); @@ -2680,7 +2679,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a mpPptEscherEx->OpenContainer( ESCHER_SpContainer ); ImplCreateShape( ESCHER_ShpInst_NotPrimitive, 0xa00, aSolverContainer ); // Flags: Connector | HasSpt ::com::sun::star::awt::Rectangle aNewRect; - aPropOpt.CreatePolygonProperties( mXPropSet, ESCHER_CREATEPOLYGON_POLYLINE, true, aNewRect, NULL ); + aPropOpt.CreatePolygonProperties( mXPropSet, ESCHER_CREATEPOLYGON_POLYLINE, true, aNewRect ); maRect = MapRectangle( aNewRect ); maPosition = ::com::sun::star::awt::Point( maRect.Left(), maRect.Top() ); maSize = ::com::sun::star::awt::Size( maRect.GetWidth(), maRect.GetHeight() ); @@ -2700,7 +2699,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a mpPptEscherEx->OpenContainer( ESCHER_SpContainer ); ImplCreateShape( ESCHER_ShpInst_NotPrimitive, 0xa00, aSolverContainer ); // Flags: Connector | HasSpt ::com::sun::star::awt::Rectangle aNewRect; - aPropOpt.CreatePolygonProperties( mXPropSet, ESCHER_CREATEPOLYGON_POLYPOLYGON, true, aNewRect, NULL ); + aPropOpt.CreatePolygonProperties( mXPropSet, ESCHER_CREATEPOLYGON_POLYPOLYGON, true, aNewRect ); maRect = MapRectangle( aNewRect ); maPosition = ::com::sun::star::awt::Point( maRect.Left(), maRect.Top() ); maSize = ::com::sun::star::awt::Size( maRect.GetWidth(), maRect.GetHeight() ); diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx index 4f18d7356026..24343f2aba6b 100644 --- a/sd/source/filter/ppt/pptin.cxx +++ b/sd/source/filter/ppt/pptin.cxx @@ -197,7 +197,7 @@ ImplSdPPTImport::ImplSdPPTImport( SdDrawDocument* pDocument, SotStorage& rStorag if ( SeekToRec( rStCtrl, PPT_PST_PPDrawingGroup, nDocLen, &aPPDGHd ) ) { sal_uLong nPPDGLen = aPPDGHd.GetRecEndFilePos(); - if ( SeekToRec( rStCtrl, DFF_msofbtDggContainer, nPPDGLen, NULL ) ) + if ( SeekToRec( rStCtrl, DFF_msofbtDggContainer, nPPDGLen ) ) nDggContainerOfs = rStCtrl.Tell(); } rStCtrl.Seek( nPosMerk ); @@ -536,7 +536,7 @@ bool ImplSdPPTImport::Import() DffRecordHeader aHyperE; if ( !SeekToRec( rStCtrl, PPT_PST_ExHyperlink, nExObjHyperListLen, &aHyperE ) ) break; - if ( !SeekToRec( rStCtrl, PPT_PST_ExHyperlinkAtom, nExObjHyperListLen, NULL ) ) + if ( !SeekToRec( rStCtrl, PPT_PST_ExHyperlinkAtom, nExObjHyperListLen ) ) break; rStCtrl.SeekRel( 8 ); rStCtrl.ReadUInt32( pPtr->nIndex ); @@ -911,16 +911,16 @@ bool ImplSdPPTImport::Import() pHandoutPage->SetPageKind( PK_HANDOUT ); pSdrModel->InsertPage( pHandoutPage ); - sal_uInt16 nPageAnz = GetPageCount( PPT_SLIDEPAGE ); + sal_uInt16 nPageAnz = GetPageCount(); if ( nPageAnz ) { for ( sal_uInt16 nPage = 0; nPage < nPageAnz; nPage++ ) { mePresChange = PRESCHANGE_SEMIAUTO; - SetPageNum( nPage, PPT_SLIDEPAGE ); + SetPageNum( nPage ); SdPage* pPage = static_cast<SdPage*>(MakeBlancPage( false )); PptSlidePersistEntry* pMasterPersist = NULL; - if ( HasMasterPage( nPage, PPT_SLIDEPAGE ) ) // try to get the LayoutName from the masterpage + if ( HasMasterPage( nPage ) ) // try to get the LayoutName from the masterpage { sal_uInt16 nMasterNum = GetMasterPageIndex( nAktPageNum, eAktPageKind ); pPage->TRG_SetMasterPage(*pSdrModel->GetMasterPage(nMasterNum)); @@ -996,7 +996,7 @@ bool ImplSdPPTImport::Import() // creating the corresponding note page eAktPageKind = PPT_NOTEPAGE; SdPage* pNotesPage = static_cast<SdPage*>(MakeBlancPage( false )); - sal_uInt16 nNotesMasterNum = GetMasterPageIndex( nPage, PPT_SLIDEPAGE ) + 1; + sal_uInt16 nNotesMasterNum = GetMasterPageIndex( nPage ) + 1; sal_uInt32 nNotesPageId = GetNotesPageId( nPage ); if ( nNotesPageId ) { @@ -1083,7 +1083,7 @@ bool ImplSdPPTImport::Import() { // set AutoLayout - SetPageNum( i, PPT_SLIDEPAGE ); + SetPageNum( i ); SdPage* pPage = mpDoc->GetSdPage( i, PK_STANDARD ); AutoLayout eAutoLayout = AUTOLAYOUT_NONE; const PptSlideLayoutAtom* pSlideLayout = GetSlideLayoutAtom(); @@ -1907,7 +1907,7 @@ OUString ImplSdPPTImport::ReadSound(sal_uInt32 nSoundRef) const if ( OUString::number(nSoundRef) == aRefStr ) { rStCtrl.Seek( nPosMerk2 ); - if ( SeekToRec( rStCtrl, PPT_PST_CString, nStrLen, NULL ) ) + if ( SeekToRec( rStCtrl, PPT_PST_CString, nStrLen ) ) { ReadString( aRetval ); bDone = true; @@ -1987,7 +1987,7 @@ OUString ImplSdPPTImport::ReadSound(sal_uInt32 nSoundRef) const OUString ImplSdPPTImport::ReadMedia( sal_uInt32 nMediaRef ) const { OUString aRetVal; - DffRecordHeader* pHd( const_cast<ImplSdPPTImport*>(this)->aDocRecManager.GetRecordHeader( PPT_PST_ExObjList, SEEK_FROM_BEGINNING ) ); + DffRecordHeader* pHd( const_cast<ImplSdPPTImport*>(this)->aDocRecManager.GetRecordHeader( PPT_PST_ExObjList ) ); if ( pHd ) { pHd->SeekToContent( rStCtrl ); @@ -2653,7 +2653,7 @@ SdrObject* ImplSdPPTImport::ProcessObj( SvStream& rSt, DffObjData& rObjData, voi sal_uInt32 nFilePosMerk2 = rSt.Tell(); OUString aMacroName; - if(SeekToRec( rSt, PPT_PST_CString, nHdRecEnd, NULL ) ) + if(SeekToRec( rSt, PPT_PST_CString, nHdRecEnd ) ) ReadString(aMacroName); rSt.Seek( nFilePosMerk2 ); diff --git a/sd/source/filter/ppt/pptinanimations.cxx b/sd/source/filter/ppt/pptinanimations.cxx index dffd6656ae1d..4fb09424d021 100644 --- a/sd/source/filter/ppt/pptinanimations.cxx +++ b/sd/source/filter/ppt/pptinanimations.cxx @@ -2183,7 +2183,7 @@ void AnimationImporter::importCommandContainer( const Atom* pAtom, const Referen { const OUString aMediaTime( aParam.copy( 9, aParam.getLength() - 10 ) ); rtl_math_ConversionStatus eStatus; - double fMediaTime = ::rtl::math::stringToDouble( aMediaTime, (sal_Unicode)('.'), (sal_Unicode)(','), &eStatus, NULL ); + double fMediaTime = ::rtl::math::stringToDouble( aMediaTime, (sal_Unicode)('.'), (sal_Unicode)(','), &eStatus ); if( eStatus == rtl_math_ConversionStatus_Ok ) { aParamValue.Name = "MediaTime"; diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx index 7dc21b231dc9..32a73f868dee 100644 --- a/sd/source/ui/app/sdmod1.cxx +++ b/sd/source/ui/app/sdmod1.cxx @@ -266,7 +266,7 @@ bool SdModule::OutlineToImpress(SfxRequest& rRequest) xDocShell = pDocSh = new ::sd::DrawDocShell( SfxObjectCreateMode::STANDARD, false); - pDocSh->DoInitNew(NULL); + pDocSh->DoInitNew(); SdDrawDocument* pDoc = pDocSh->GetDoc(); if(pDoc) { @@ -718,7 +718,7 @@ SfxFrame* SdModule::CreateEmptyDocument( DocumentType eDocType, const Reference< SfxObjectShellLock xDocShell; ::sd::DrawDocShell* pNewDocSh; xDocShell = pNewDocSh = new ::sd::DrawDocShell(SfxObjectCreateMode::STANDARD,false,eDocType); - pNewDocSh->DoInitNew(NULL); + pNewDocSh->DoInitNew(); SdDrawDocument* pDoc = pNewDocSh->GetDoc(); if (pDoc) { diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index 06c80790ff3f..994ac56a29ee 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -571,7 +571,7 @@ bool SdTransferable::GetData( const DataFlavor& rFlavor, const OUString& rDestDo true, mpSdDrawDocumentIntern->GetDocumentType()); mbOwnDocument = false; - maDocShellRef->DoInitNew( NULL ); + maDocShellRef->DoInitNew(); } maDocShellRef->SetVisArea( maVisArea ); diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx index 7fa6101b5817..1ee79055ab1c 100644 --- a/sd/source/ui/dlg/dlgass.cxx +++ b/sd/source/ui/dlg/dlgass.cxx @@ -1406,7 +1406,7 @@ void AssistentDlgImpl::UpdatePreview( bool bDocPreview ) DrawDocShell* pNewDocSh; xDocShell = pNewDocSh = new DrawDocShell(SfxObjectCreateMode::STANDARD, false); - pNewDocSh->DoInitNew(NULL); + pNewDocSh->DoInitNew(); SdDrawDocument* pDoc = pNewDocSh->GetDoc(); pDoc->CreateFirstPages(); pDoc->StopWorkStartupDelay(); diff --git a/sd/source/ui/dlg/vectdlg.cxx b/sd/source/ui/dlg/vectdlg.cxx index 3c17bf048c45..37bb4824c9b3 100644 --- a/sd/source/ui/dlg/vectdlg.cxx +++ b/sd/source/ui/dlg/vectdlg.cxx @@ -143,7 +143,7 @@ Bitmap SdVectorizeDlg::GetPreparedBitmap( Bitmap& rBmp, Fraction& rScale ) else rScale = Fraction( 1, 1 ); - aNew.ReduceColors( (sal_uInt16) m_pNmLayers->GetValue(), BMP_REDUCE_SIMPLE ); + aNew.ReduceColors( (sal_uInt16) m_pNmLayers->GetValue() ); return aNew; } diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx index dfcf1c03ea1a..a85d1b782408 100644 --- a/sd/source/ui/docshell/docshel4.cxx +++ b/sd/source/ui/docshell/docshel4.cxx @@ -307,7 +307,7 @@ bool DrawDocShell::Load( SfxMedium& rMedium ) SetVisArea( Rectangle( pPage->GetAllObjBoundRect() ) ); } - FinishedLoading( SfxLoadedFlags::ALL ); + FinishedLoading(); const INetURLObject aUrl; SfxObjectShell::SetAutoLoad( aUrl, 0, false ); @@ -484,7 +484,7 @@ bool DrawDocShell::ConvertFrom( SfxMedium& rMedium ) bRet = SdGRFFilter( rMedium, *this ).Import(); } - FinishedLoading( SfxLoadedFlags::ALL ); + FinishedLoading(); // tell SFX to change viewshell when in preview mode if( IsPreview() ) diff --git a/sd/source/ui/func/fuinsfil.cxx b/sd/source/ui/func/fuinsfil.cxx index 19f175e58a23..03c723e7cf29 100644 --- a/sd/source/ui/func/fuinsfil.cxx +++ b/sd/source/ui/func/fuinsfil.cxx @@ -262,7 +262,7 @@ void FuInsertFile::DoExecute( SfxRequest& rReq ) SfxMedium* pMedium = new SfxMedium( aFile, StreamMode::READ | StreamMode::NOCREATE ); const SfxFilter* pFilter = NULL; - SfxGetpApp()->GetFilterMatcher().GuessFilter( *pMedium, &pFilter, SfxFilterFlags::IMPORT, SFX_FILTER_NOTINSTALLED ); + SfxGetpApp()->GetFilterMatcher().GuessFilter( *pMedium, &pFilter ); bool bDrawMode = mpViewShell && dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr; bool bInserted = false; diff --git a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx index fd3f86389b65..da8a3ecc9b5a 100644 --- a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx +++ b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx @@ -275,7 +275,7 @@ void SlideSorterController::Paint ( try { - mrView.CompleteRedraw(pWindow, vcl::Region(rBBox), 0); + mrView.CompleteRedraw(pWindow, vcl::Region(rBBox)); } catch (const Exception&) { diff --git a/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx b/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx index 9de0a5ef91b9..fedeb0108041 100644 --- a/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx +++ b/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx @@ -65,7 +65,7 @@ DragAndDropContext::DragAndDropContext (SlideSorter& rSlideSorter) DragAndDropContext::~DragAndDropContext() { - SetTargetSlideSorter (NULL, Point(0,0), InsertionIndicatorHandler::UnknownMode); + SetTargetSlideSorter (NULL, Point(0,0)); } void DragAndDropContext::Dispose() diff --git a/sd/source/ui/tools/PreviewRenderer.cxx b/sd/source/ui/tools/PreviewRenderer.cxx index 0fea78969f5a..a6ad71a60f5e 100644 --- a/sd/source/ui/tools/PreviewRenderer.cxx +++ b/sd/source/ui/tools/PreviewRenderer.cxx @@ -275,7 +275,7 @@ bool PreviewRenderer::Initialize ( } pPageView->SetApplicationDocumentColor(aApplicationDocumentColor); - SdrOutliner& rOutliner(pDocument->GetDrawOutliner(NULL)); + SdrOutliner& rOutliner(pDocument->GetDrawOutliner()); rOutliner.SetBackgroundColor(aApplicationDocumentColor); rOutliner.SetDefaultLanguage(pDocument->GetLanguage(EE_CHAR_LANGUAGE)); mpPreviewDevice->SetBackground(Wallpaper(aApplicationDocumentColor)); diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 434bf1a893c9..1fbb17917083 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -1962,7 +1962,7 @@ void SAL_CALL SdXImpressDocument::render( sal_Int32 nRenderer, const uno::Any& r SdPage* pPage = pPV ? static_cast<SdPage*>(pPV->GetPage()) : NULL; if( pPage ) { - SdrOutliner& rOutl = mpDoc->GetDrawOutliner( NULL ); + SdrOutliner& rOutl = mpDoc->GetDrawOutliner(); bool bScreenDisplay(true); if(bScreenDisplay && pOut && OUTDEV_PRINTER == pOut->GetOutDevType()) diff --git a/sd/source/ui/view/ViewShellManager.cxx b/sd/source/ui/view/ViewShellManager.cxx index 6b20957d2e9d..3def66fa7213 100644 --- a/sd/source/ui/view/ViewShellManager.cxx +++ b/sd/source/ui/view/ViewShellManager.cxx @@ -1138,7 +1138,7 @@ void ViewShellManager::Implementation::Shutdown() } } } - mrBase.RemoveSubShell (NULL); + mrBase.RemoveSubShell (); maShellFactories.clear(); } diff --git a/sd/source/ui/view/drviews5.cxx b/sd/source/ui/view/drviews5.cxx index 0f7ff416f90b..a4174b406224 100644 --- a/sd/source/ui/view/drviews5.cxx +++ b/sd/source/ui/view/drviews5.cxx @@ -409,7 +409,7 @@ void DrawViewShell::Paint(const Rectangle& rRect, ::sd::Window* pWin) /* This is done before each text edit, so why not do it before every paint. The default language is only used if the outliner only contains one character in a symbol font */ - GetDoc()->GetDrawOutliner( NULL ).SetDefaultLanguage( GetDoc()->GetLanguage( EE_CHAR_LANGUAGE ) ); + GetDoc()->GetDrawOutliner().SetDefaultLanguage( GetDoc()->GetLanguage( EE_CHAR_LANGUAGE ) ); // Set Application Background color for usage in SdrPaintView(s) mpDrawView->SetApplicationBackgroundColor(GetAppBackgroundColor()); @@ -417,7 +417,7 @@ void DrawViewShell::Paint(const Rectangle& rRect, ::sd::Window* pWin) /* This is done before each text edit, so why not do it before every paint. The default language is only used if the outliner only contains one character in a symbol font */ - GetDoc()->GetDrawOutliner( NULL ).SetDefaultLanguage( Application::GetSettings().GetLanguageTag().getLanguageType() ); + GetDoc()->GetDrawOutliner().SetDefaultLanguage( Application::GetSettings().GetLanguageTag().getLanguageType() ); mpDrawView->CompleteRedraw( pWin, vcl::Region( rRect ) ); } diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx index a1e209183091..d5db95d33189 100644 --- a/sd/source/ui/view/sdview.cxx +++ b/sd/source/ui/view/sdview.cxx @@ -478,7 +478,7 @@ void View::CompleteRedraw(OutputDevice* pOutDev, const vcl::Region& rReg, sdr::c SdPage* pPage = static_cast<SdPage*>( pPgView->GetPage() ); if( pPage ) { - SdrOutliner& rOutl = mrDoc.GetDrawOutliner(NULL); + SdrOutliner& rOutl = mrDoc.GetDrawOutliner(); bool bScreenDisplay(true); if(bScreenDisplay && pOutDev && OUTDEV_PRINTER == pOutDev->GetOutDevType()) diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx index c440d4befcc9..d6c72e006d38 100644 --- a/sd/source/ui/view/sdview2.cxx +++ b/sd/source/ui/view/sdview2.cxx @@ -370,7 +370,7 @@ void View::StartDrag( const Point& rStartPos, vcl::Window* pWindow ) rtl::Reference<FuPoor> xFunction( pDrawViewShell->GetCurrentFunction() ); if( xFunction.is() && 0 != dynamic_cast< const FuDraw *>( xFunction.get() ) ) - static_cast<FuDraw*>(xFunction.get())->ForcePointer( NULL ); + static_cast<FuDraw*>(xFunction.get())->ForcePointer(); } mpDragSrcMarkList = new SdrMarkList(GetMarkedObjectList()); diff --git a/sd/source/ui/view/sdview3.cxx b/sd/source/ui/view/sdview3.cxx index 3d28ee2cf496..ad0d304cb660 100644 --- a/sd/source/ui/view/sdview3.cxx +++ b/sd/source/ui/view/sdview3.cxx @@ -666,7 +666,7 @@ bool View::InsertData( const TransferableDataHelper& rDataHelper, if( aDataHelper.GetSotStorageStream( SotClipboardFormatId::DRAWING, xStm ) ) { DrawDocShellRef xShell = new DrawDocShell(SfxObjectCreateMode::INTERNAL); - xShell->DoInitNew(0); + xShell->DoInitNew(); SdDrawDocument* pModel = xShell->GetDoc(); pModel->InsertPage(pModel->AllocPage(false)); diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx index 8036eeecaf47..2e9004664458 100644 --- a/sd/source/ui/view/sdview4.cxx +++ b/sd/source/ui/view/sdview4.cxx @@ -449,7 +449,7 @@ IMPL_LINK_NOARG_TYPED(View, DropInsertFileHdl, Idle *, void) { const SfxFilter* pFoundFilter = NULL; SfxMedium aSfxMedium( aCurrentDropFile, StreamMode::READ | StreamMode::SHARE_DENYNONE ); - ErrCode nErr = SfxGetpApp()->GetFilterMatcher().GuessFilter( aSfxMedium, &pFoundFilter, SfxFilterFlags::IMPORT, SFX_FILTER_NOTINSTALLED ); + ErrCode nErr = SfxGetpApp()->GetFilterMatcher().GuessFilter( aSfxMedium, &pFoundFilter ); if( pFoundFilter && !nErr ) { |