summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorAleksas Pantechovskis <alex.pantec@gmail.com>2016-03-03 15:43:51 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-04 06:40:33 +0000
commit57d0caacee2f395be2e89b78f8ece2d47b2c8683 (patch)
tree5d51c927ad91433c6f76e7a7edb8bb561bfec026 /starmath
parentf5e131b2bcd2c88a47e5988d5f319bffd767c4dc (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 'starmath')
-rw-r--r--starmath/inc/rect.hxx2
-rw-r--r--starmath/source/ElementsDockingWindow.cxx2
-rw-r--r--starmath/source/dialog.cxx2
-rw-r--r--starmath/source/edit.cxx8
-rw-r--r--starmath/source/view.cxx6
5 files changed, 10 insertions, 10 deletions
diff --git a/starmath/inc/rect.hxx b/starmath/inc/rect.hxx
index 31b337c9cdec..1c8f3e3b5ead 100644
--- a/starmath/inc/rect.hxx
+++ b/starmath/inc/rect.hxx
@@ -145,7 +145,7 @@ public:
long GetLeft() const { return GetTopLeft().X(); }
long GetBottom() const { return GetTop() + GetHeight() - 1; }
long GetRight() const { return GetLeft() + GetWidth() - 1; }
- long GetCenterY() const { return (GetTop() + GetBottom()) / 2L; }
+ long GetCenterY() const { return (GetTop() + GetBottom()) / 2; }
long GetWidth() const { return GetSize().Width(); }
long GetHeight() const { return GetSize().Height(); }
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx
index ea1fde843517..feb89f18e816 100644
--- a/starmath/source/ElementsDockingWindow.cxx
+++ b/starmath/source/ElementsDockingWindow.cxx
@@ -760,7 +760,7 @@ IMPL_LINK_TYPED(SmElementsDockingWindow, SelectClickHandler, SmElement&, rElemen
{
pViewSh->GetViewFrame()->GetDispatcher()->Execute(
SID_INSERTCOMMANDTEXT, SfxCallMode::RECORD,
- new SfxStringItem(SID_INSERTCOMMANDTEXT, rElement.getText()), 0L);
+ new SfxStringItem(SID_INSERTCOMMANDTEXT, rElement.getText()), 0);
}
}
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index 9a55ef734647..9dbf2932f903 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -1528,7 +1528,7 @@ IMPL_LINK_NOARG_TYPED( SmSymbolDialog, GetClickHdl, Button*, void )
rViewSh.GetViewFrame()->GetDispatcher()->Execute(
SID_INSERTSYMBOL, SfxCallMode::RECORD,
- new SfxStringItem(SID_INSERTSYMBOL, aText.makeStringAndClear()), 0L);
+ new SfxStringItem(SID_INSERTSYMBOL, aText.makeStringAndClear()), 0);
}
}
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 08158cc7c396..c84abc868957 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -400,7 +400,7 @@ IMPL_LINK_TYPED( SmEditWindow, MenuSelectHdl, Menu *, pMenu, bool )
if (pViewSh)
pViewSh->GetViewFrame()->GetDispatcher()->Execute(
SID_INSERTCOMMAND, SfxCallMode::RECORD,
- new SfxInt16Item(SID_INSERTCOMMAND, pMenu->GetCurItemId()), 0L);
+ new SfxInt16Item(SID_INSERTCOMMAND, pMenu->GetCurItemId()), 0);
return false;
}
@@ -597,10 +597,10 @@ Rectangle SmEditWindow::AdjustScrollBars()
if (pVScrollBar && pHScrollBar && pScrollBox)
{
const long nTmp = GetSettings().GetStyleSettings().GetScrollBarSize();
- Point aPt( aRect.TopRight() ); aPt.X() -= nTmp -1L;
+ Point aPt( aRect.TopRight() ); aPt.X() -= nTmp -1;
pVScrollBar->SetPosSizePixel( aPt, Size(nTmp, aOut.Height() - nTmp));
- aPt = aRect.BottomLeft(); aPt.Y() -= nTmp - 1L;
+ aPt = aRect.BottomLeft(); aPt.Y() -= nTmp - 1;
pHScrollBar->SetPosSizePixel( aPt, Size(aOut.Width() - nTmp, nTmp));
aPt.X() = pHScrollBar->GetSizePixel().Width();
@@ -1075,7 +1075,7 @@ void SmEditWindow::Flush()
{
pViewSh->GetViewFrame()->GetDispatcher()->Execute(
SID_TEXT, SfxCallMode::RECORD,
- new SfxStringItem(SID_TEXT, GetText()), 0L);
+ new SfxStringItem(SID_TEXT, GetText()), 0);
}
}
if (aCursorMoveIdle.IsActive())
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 7d6eb4f31ed4..f3a7607f9ba0 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -573,7 +573,7 @@ void SmGraphicWindow::Command(const CommandEvent& rCEvt)
if ( pWData && CommandWheelMode::ZOOM == pWData->GetMode() )
{
sal_uInt16 nTmpZoom = GetZoom();
- if( 0L > pWData->GetDelta() )
+ if( 0 > pWData->GetDelta() )
nTmpZoom -= 10;
else
nTmpZoom += 10;
@@ -1537,7 +1537,7 @@ void SmViewShell::Execute(SfxRequest& rReq)
{
GetViewFrame()->GetDispatcher()->Execute(
SID_COPYOBJECT, SfxCallMode::RECORD,
- new SfxVoidItem(SID_COPYOBJECT), 0L);
+ new SfxVoidItem(SID_COPYOBJECT), 0);
}
else
pWin->Copy();
@@ -1563,7 +1563,7 @@ void SmViewShell::Execute(SfxRequest& rReq)
{
GetViewFrame()->GetDispatcher()->Execute(
SID_PASTEOBJECT, SfxCallMode::RECORD,
- new SfxVoidItem(SID_PASTEOBJECT), 0L);
+ new SfxVoidItem(SID_PASTEOBJECT), 0);
}
}
break;