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/olinewin.cxx | |
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/olinewin.cxx')
-rw-r--r-- | sc/source/ui/view/olinewin.cxx | 2 |
1 files changed, 1 insertions, 1 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 --- |