diff options
author | Aleksas Pantechovskis <alex.pantec@gmail.com> | 2016-03-03 15:43:51 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-04 06:40:33 +0000 |
commit | 57d0caacee2f395be2e89b78f8ece2d47b2c8683 (patch) | |
tree | 5d51c927ad91433c6f76e7a7edb8bb561bfec026 /sc/source/ui/view | |
parent | f5e131b2bcd2c88a47e5988d5f319bffd767c4dc (diff) |
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 <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r-- | sc/source/ui/view/olinewin.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsh5.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsh9.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwshe.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/viewfun2.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/viewfun4.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/viewfun6.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/viewutil.cxx | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/ui/view/olinewin.cxx b/sc/source/ui/view/olinewin.cxx index e80cfd346c56..bf2e3910477e 100644 --- a/sc/source/ui/view/olinewin.cxx +++ b/sc/source/ui/view/olinewin.cxx @@ -293,7 +293,7 @@ bool ScOutlineWindow::GetEntryPos( (rnStartPos - ( SC_OL_BITMAPSIZE / 2 ) * nEntriesSign) : rnStartPos + nEntriesSign; long nCenter = (rnStartPos + rnEndPos - SC_OL_BITMAPSIZE * nEntriesSign + - ( mbMirrorEntries ? 1 : 0 )) / 2L; + ( mbMirrorEntries ? 1 : 0 )) / 2; rnImagePos = mbMirrorEntries ? std::max( rnImagePos, nCenter ) : std::min( rnImagePos, nCenter ); // --- refinements --- diff --git a/sc/source/ui/view/tabvwsh5.cxx b/sc/source/ui/view/tabvwsh5.cxx index 674dc6544e48..1d7949a57bbc 100644 --- a/sc/source/ui/view/tabvwsh5.cxx +++ b/sc/source/ui/view/tabvwsh5.cxx @@ -113,7 +113,7 @@ void ScTabViewShell::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SfxBoolItem aItem( SID_FM_DESIGN_MODE, !bReadOnly); GetViewData().GetDispatcher().Execute( SID_FM_DESIGN_MODE, SfxCallMode::ASYNCHRON, - &aItem, 0L ); + &aItem, 0 ); UpdateInputContext(); } diff --git a/sc/source/ui/view/tabvwsh9.cxx b/sc/source/ui/view/tabvwsh9.cxx index f0711a953bdc..f8ccd46c5db0 100644 --- a/sc/source/ui/view/tabvwsh9.cxx +++ b/sc/source/ui/view/tabvwsh9.cxx @@ -84,7 +84,7 @@ void ScTabViewShell::ExecGallery( SfxRequest& rReq ) // for sounds (linked or not), insert a hyperlink button, // like in Impress and Writer 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 ); } } diff --git a/sc/source/ui/view/tabvwshe.cxx b/sc/source/ui/view/tabvwshe.cxx index f2528e7fa02a..1bc92f80c3f4 100644 --- a/sc/source/ui/view/tabvwshe.cxx +++ b/sc/source/ui/view/tabvwshe.cxx @@ -301,7 +301,7 @@ void ScTabViewShell::ExecSearch( SfxRequest& rReq ) GetViewData().GetDispatcher().Execute( FID_SEARCH_NOW, rReq.IsAPI() ? SfxCallMode::API|SfxCallMode::SYNCHRON : SfxCallMode::RECORD, - &aSearchItem, 0L ); + &aSearchItem, 0 ); const SfxChildWindow* pChildWindow = SfxViewFrame::Current()->GetChildWindow( SvxSearchDialogWrapper::GetChildWindowId()); if (pChildWindow) @@ -338,7 +338,7 @@ void ScTabViewShell::ExecSearch( SfxRequest& rReq ) GetViewData().GetDispatcher().Execute( FID_SEARCH_NOW, rReq.IsAPI() ? SfxCallMode::API|SfxCallMode::SYNCHRON : SfxCallMode::RECORD, - &aSearchItem, 0L ); + &aSearchItem, 0 ); } break; // case FID_SEARCH_COUNT: diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx index 55e6e81de00f..7ab75c852fe9 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -2553,7 +2553,7 @@ void ScViewFunc::MoveTable( SfxStringItem aTarget( SID_TARGETNAME, OUString("_blank") ); const SfxPoolItem* pRetItem = GetViewData().GetDispatcher().Execute( - SID_OPENDOC, SfxCallMode::API|SfxCallMode::SYNCHRON, &aItem, &aTarget, 0L ); + SID_OPENDOC, SfxCallMode::API|SfxCallMode::SYNCHRON, &aItem, &aTarget, 0 ); if ( pRetItem ) { if ( dynamic_cast<const SfxObjectItem*>( pRetItem) != nullptr ) diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx index 79192ad429f1..a4fe4b81e5cc 100644 --- a/sc/source/ui/view/viewfun4.cxx +++ b/sc/source/ui/view/viewfun4.cxx @@ -577,7 +577,7 @@ bool ScViewFunc::PasteFile( const Point& rPos, const OUString& rFile, bool bLink const SfxStringItem aMediaURLItem( SID_INSERT_AVMEDIA, aStrURL ); return ( nullptr != GetViewData().GetDispatcher().Execute( SID_INSERT_AVMEDIA, SfxCallMode::SYNCHRON, - &aMediaURLItem, 0L ) ); + &aMediaURLItem, 0 ) ); } if (!bLink) // for bLink only graphics or URL @@ -605,7 +605,7 @@ bool ScViewFunc::PasteFile( const Point& rPos, const OUString& rFile, bool bLink // Open Asynchronously, because it can also happen from D&D // and that is not so good for the MAC... return ( nullptr != rDispatcher.Execute( SID_OPENDOC, - SfxCallMode::ASYNCHRON, &aFileNameItem, &aFilterItem, &aTargetItem, 0L) ); + SfxCallMode::ASYNCHRON, &aFileNameItem, &aFilterItem, &aTargetItem, 0) ); } } diff --git a/sc/source/ui/view/viewfun6.cxx b/sc/source/ui/view/viewfun6.cxx index 2a3050616d9c..d655cddfcedc 100644 --- a/sc/source/ui/view/viewfun6.cxx +++ b/sc/source/ui/view/viewfun6.cxx @@ -113,7 +113,7 @@ static void lcl_jumpToRange(const ScRange& rRange, ScViewData* pView, ScDocument SfxBoolItem aUnmarkItem(FN_PARAM_1, true); // remove existing selection pView->GetDispatcher().Execute( SID_CURRENTCELL, SfxCallMode::SYNCHRON | SfxCallMode::RECORD, - &aPosItem, &aUnmarkItem, 0L); + &aPosItem, &aUnmarkItem, 0); } void ScViewFunc::MarkAndJumpToRanges(const ScRangeList& rRanges) diff --git a/sc/source/ui/view/viewutil.cxx b/sc/source/ui/view/viewutil.cxx index 41df6e598b5e..37b6e6b9999e 100644 --- a/sc/source/ui/view/viewutil.cxx +++ b/sc/source/ui/view/viewutil.cxx @@ -382,7 +382,7 @@ void ScViewUtil::SetFullScreen( SfxViewShell& rViewShell, bool bSet ) if( IsFullScreen( rViewShell ) != bSet ) { SfxBoolItem aItem( SID_WIN_FULLSCREEN, bSet ); - rViewShell.GetDispatcher()->Execute( SID_WIN_FULLSCREEN, SfxCallMode::RECORD, &aItem, 0L ); + rViewShell.GetDispatcher()->Execute( SID_WIN_FULLSCREEN, SfxCallMode::RECORD, &aItem, 0 ); } } |