diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-18 10:39:48 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-01-18 12:50:09 +0000 |
commit | a7f6efc68ba97db98ebab9ebc473bffb8ded757f (patch) | |
tree | bad37ce9ee1c9f61f1c8541a9689ecdea8c84c08 /starmath/source | |
parent | a08745551370a052bfb6b91335956ababf435791 (diff) |
loplugin: unused return values
Change-Id: I9c61a46c57894bc63a57740206c0bcb4a16553af
Reviewed-on: https://gerrit.libreoffice.org/21571
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/rect.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx index ebacd2cc27b7..08168e4f944a 100644 --- a/starmath/source/rect.cxx +++ b/starmath/source/rect.cxx @@ -389,14 +389,14 @@ const Point SmRect::AlignTo(const SmRect &rRect, RectPos ePos, } -SmRect & SmRect::Union(const SmRect &rRect) +void SmRect::Union(const SmRect &rRect) // rectangle union of current one with 'rRect'. The result is to be the // smallest rectangles that covers the space of both rectangles. // (empty rectangles cover no space) //! Italic correction is NOT taken into account here! { if (rRect.IsEmpty()) - return *this; + return; long nL = rRect.GetLeft(), nR = rRect.GetRight(), @@ -427,8 +427,6 @@ SmRect & SmRect::Union(const SmRect &rRect) SetBottom(nB); nGlyphTop = nGT; nGlyphBottom = nGB; - - return *this; } @@ -481,7 +479,7 @@ SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode) } -SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode, +void SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode, long nNewAlignM) // as 'ExtendBy' but sets AlignM value to 'nNewAlignM'. // (this version will be used in 'SmBinVerNode' to provide means to @@ -492,8 +490,6 @@ SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode, ExtendBy(rRect, eCopyMode); nAlignM = nNewAlignM; - - return *this; } |