From 57d0caacee2f395be2e89b78f8ece2d47b2c8683 Mon Sep 17 00:00:00 2001 From: Aleksas Pantechovskis Date: Thu, 3 Mar 2016 15:43:51 +0200 Subject: tdf#96505 Remove long integer literal specifier when not needed Remove L from integer literals if it does not produce warnings and does not change semantics Change-Id: I9573a47d3e3401993a1f0fbcf7df4be20f9e6eba Reviewed-on: https://gerrit.libreoffice.org/22867 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sd/source/filter/cgm/sdcgmfilter.cxx | 2 +- sd/source/filter/grf/sdgrffilter.cxx | 2 +- sd/source/ui/view/drviews1.cxx | 2 +- sd/source/ui/view/drviews2.cxx | 6 +++--- sd/source/ui/view/drviews4.cxx | 2 +- sd/source/ui/view/drviews5.cxx | 4 ++-- sd/source/ui/view/drviews9.cxx | 2 +- sd/source/ui/view/drviewsa.cxx | 2 +- sd/source/ui/view/drviewsb.cxx | 2 +- sd/source/ui/view/drviewsd.cxx | 2 +- sd/source/ui/view/drviewse.cxx | 2 +- sd/source/ui/view/drviewsi.cxx | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) (limited to 'sd') diff --git a/sd/source/filter/cgm/sdcgmfilter.cxx b/sd/source/filter/cgm/sdcgmfilter.cxx index cad19cd91ad4..776d4db4d579 100644 --- a/sd/source/filter/cgm/sdcgmfilter.cxx +++ b/sd/source/filter/cgm/sdcgmfilter.cxx @@ -78,7 +78,7 @@ bool SdCGMFilter::Import() OUString aFileURL( mrMedium.GetURLObject().GetMainURL( INetURLObject::NO_DECODE ) ); sal_uInt32 nRetValue; - if( mrDocument.GetPageCount() == 0L ) + if( mrDocument.GetPageCount() == 0 ) mrDocument.CreateFirstPages(); CreateStatusIndicator(); diff --git a/sd/source/filter/grf/sdgrffilter.cxx b/sd/source/filter/grf/sdgrffilter.cxx index 90b3baaf3076..5a030e2b9a53 100644 --- a/sd/source/filter/grf/sdgrffilter.cxx +++ b/sd/source/filter/grf/sdgrffilter.cxx @@ -188,7 +188,7 @@ bool SdGRFFilter::Import() HandleGraphicFilterError( nReturn, rGraphicFilter.GetLastError().nStreamError ); else { - if( mrDocument.GetPageCount() == 0L ) + if( mrDocument.GetPageCount() == 0 ) mrDocument.CreateFirstPages(); SdPage* pPage = mrDocument.GetSdPage( 0, PK_STANDARD ); diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index 3f99ac9f727e..0d8e8bc01a7f 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -163,7 +163,7 @@ void DrawViewShell::SelectionHasChanged() //Update3DWindow(); // 3D-Controller SfxBoolItem aItem( SID_3D_STATE, true ); GetViewFrame()->GetDispatcher()->Execute( - SID_3D_STATE, SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, &aItem, 0L ); + SID_3D_STATE, SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, &aItem, 0 ); SdrOle2Obj* pOleObj = nullptr; diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index 83ca6e9df904..f9c244baf810 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -1049,7 +1049,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) { // The value (sal_uInt16)0xFFFF means set bullet on/off. SfxUInt16Item aItem(FN_SVX_SET_BULLET, (sal_uInt16)0xFFFF); - GetViewFrame()->GetDispatcher()->Execute( FN_SVX_SET_BULLET, SfxCallMode::RECORD, &aItem, 0L ); + GetViewFrame()->GetDispatcher()->Execute( FN_SVX_SET_BULLET, SfxCallMode::RECORD, &aItem, 0 ); } break; @@ -1057,7 +1057,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) { // The value (sal_uInt16)0xFFFF means set bullet on/off. SfxUInt16Item aItem(FN_SVX_SET_NUMBER, (sal_uInt16)0xFFFF); - GetViewFrame()->GetDispatcher()->Execute( FN_SVX_SET_NUMBER, SfxCallMode::RECORD, &aItem, 0L ); + GetViewFrame()->GetDispatcher()->Execute( FN_SVX_SET_NUMBER, SfxCallMode::RECORD, &aItem, 0 ); } break; @@ -1740,7 +1740,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) &aUrl, &aTarget, &aFrm, &aReferer, &aNewView, &aBrowsing, - 0L ); + 0 ); } } } diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx index 76ef60a24411..53963102144b 100644 --- a/sd/source/ui/view/drviews4.cxx +++ b/sd/source/ui/view/drviews4.cxx @@ -844,7 +844,7 @@ void DrawViewShell::ShowMousePosInfo(const Rectangle& rRect, SfxItemSet aSet(GetPool(), SID_CONTEXT, SID_CONTEXT, SID_ATTR_POSITION, SID_ATTR_POSITION, SID_ATTR_SIZE, SID_ATTR_SIZE, - 0L); + 0); GetStatusBarState(aSet); diff --git a/sd/source/ui/view/drviews5.cxx b/sd/source/ui/view/drviews5.cxx index 1b9649e98b71..a084e86360a5 100644 --- a/sd/source/ui/view/drviews5.cxx +++ b/sd/source/ui/view/drviews5.cxx @@ -74,7 +74,7 @@ void DrawViewShell::ModelHasChanged() SfxBoolItem aItem( SID_3D_STATE, true ); GetViewFrame()->GetDispatcher()->Execute( - SID_3D_STATE, SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, &aItem, 0L ); + SID_3D_STATE, SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, &aItem, 0 ); // now initialize the TextEditOutliner which was newly created by the draw engine ::Outliner* pOutliner = mpDrawView->GetTextEditOutliner(); @@ -300,7 +300,7 @@ void DrawViewShell::ReadFrameViewData(FrameView* pView) if ( mpDrawView->IsDesignMode() != pView->IsDesignMode() ) { SfxBoolItem aDesignModeItem( SID_FM_DESIGN_MODE, pView->IsDesignMode() ); - GetViewFrame()->GetDispatcher()->Execute( SID_FM_DESIGN_MODE, SfxCallMode::SYNCHRON | SfxCallMode::RECORD, &aDesignModeItem, 0L ); + GetViewFrame()->GetDispatcher()->Execute( SID_FM_DESIGN_MODE, SfxCallMode::SYNCHRON | SfxCallMode::RECORD, &aDesignModeItem, 0 ); } // has to be called in the end, because it executes a WriteFrameViewData() diff --git a/sd/source/ui/view/drviews9.cxx b/sd/source/ui/view/drviews9.cxx index 46abdffd0bfc..30868dadeaea 100644 --- a/sd/source/ui/view/drviews9.cxx +++ b/sd/source/ui/view/drviews9.cxx @@ -177,7 +177,7 @@ void DrawViewShell::ExecGallery(SfxRequest& rReq) else if( nType == css::gallery::GalleryItemType::MEDIA ) { const SfxStringItem aMediaURLItem( SID_INSERT_AVMEDIA, pGalleryItem->GetURL() ); - GetViewFrame()->GetDispatcher()->Execute( SID_INSERT_AVMEDIA, SfxCallMode::SYNCHRON, &aMediaURLItem, 0L ); + GetViewFrame()->GetDispatcher()->Execute( SID_INSERT_AVMEDIA, SfxCallMode::SYNCHRON, &aMediaURLItem, 0 ); } GetDocSh()->SetWaitCursor( false ); diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx index 10ce82e29bc5..a4633c60a69b 100644 --- a/sd/source/ui/view/drviewsa.cxx +++ b/sd/source/ui/view/drviewsa.cxx @@ -750,7 +750,7 @@ void DrawViewShell::Notify (SfxBroadcaster&, const SfxHint& rHint) SfxBoolItem aItem( SID_FM_DESIGN_MODE, !mbReadOnly ); GetViewFrame()->GetDispatcher()->Execute( SID_FM_DESIGN_MODE, - SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, &aItem, 0L ); + SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, &aItem, 0 ); } } diff --git a/sd/source/ui/view/drviewsb.cxx b/sd/source/ui/view/drviewsb.cxx index 3d01d685ffe9..811dc8e8360a 100644 --- a/sd/source/ui/view/drviewsb.cxx +++ b/sd/source/ui/view/drviewsb.cxx @@ -122,7 +122,7 @@ bool DrawViewShell::RenameSlide( sal_uInt16 nPageId, const OUString & rName ) // inform navigator about change SfxBoolItem aItem( SID_NAVIGATOR_INIT, true ); GetViewFrame()->GetDispatcher()->Execute( - SID_NAVIGATOR_INIT, SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, &aItem, 0L ); + SID_NAVIGATOR_INIT, SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, &aItem, 0 ); // Tell the slide sorter about the name change (necessary for // accessibility.) diff --git a/sd/source/ui/view/drviewsd.cxx b/sd/source/ui/view/drviewsd.cxx index 4ba0ab3bb834..db6a02423807 100644 --- a/sd/source/ui/view/drviewsd.cxx +++ b/sd/source/ui/view/drviewsd.cxx @@ -136,7 +136,7 @@ void DrawViewShell::ExecNavigatorWin( SfxRequest& rReq ) SfxBoolItem aBrowseItem(SID_BROWSE, true); pFrame->GetDispatcher()-> Execute(SID_OPENDOC, SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, - &aStrItem, &aFrameItem, &aBrowseItem, &aReferer, 0L); + &aStrItem, &aFrameItem, &aBrowseItem, &aReferer, 0); } SfxBindings& rBindings = GetViewFrame()->GetBindings(); diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx index ab82b59e1142..1599fb8e188f 100644 --- a/sd/source/ui/view/drviewse.cxx +++ b/sd/source/ui/view/drviewse.cxx @@ -619,7 +619,7 @@ void DrawViewShell::FuPermanent(SfxRequest& rReq) SfxUInt16Item aItem (SID_TEXTEDIT, 1); GetViewFrame()->GetDispatcher()-> Execute(SID_TEXTEDIT, SfxCallMode::SYNCHRON | - SfxCallMode::RECORD, &aItem, 0L); + SfxCallMode::RECORD, &aItem, 0); // Put text object into edit mode. GetView()->SdrBeginTextEdit(static_cast(pObj), pPageView); break; diff --git a/sd/source/ui/view/drviewsi.cxx b/sd/source/ui/view/drviewsi.cxx index 930e9b0305ce..c5a3e5201e9a 100644 --- a/sd/source/ui/view/drviewsi.cxx +++ b/sd/source/ui/view/drviewsi.cxx @@ -140,7 +140,7 @@ void DrawViewShell::AssignFrom3DWindow() sal_uInt16 nSId = SID_CONVERT_TO_3D; SfxBoolItem aItem( nSId, true ); GetViewFrame()->GetDispatcher()->Execute( - nSId, SfxCallMode::SYNCHRON | SfxCallMode::RECORD, &aItem, 0L ); + nSId, SfxCallMode::SYNCHRON | SfxCallMode::RECORD, &aItem, 0 ); // Determine if a FILL attribute is set. // If not, hard set a fill attribute -- cgit