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 /starmath/inc | |
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 'starmath/inc')
-rw-r--r-- | starmath/inc/rect.hxx | 2 |
1 files changed, 1 insertions, 1 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(); } |