diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2017-01-17 13:21:13 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2017-01-17 11:39:41 +0000 |
commit | 98e910fbecd3e4f4fee7b527f332a3f7219aebd9 (patch) | |
tree | 685e4d0a0ff57da3e54af920df075e9b9bfbebc4 /starmath/inc/rect.hxx | |
parent | 70fed865df7655a7ee65fa6cde51bbf93182dbbb (diff) |
starmath: Rely on the default ctors for SmRect
No need to define its copy ctor manually nor to use
placement new for assignment operator.
Change-Id: I679a19c1d1a87072d818cdfa4a9347edb6f4cea1
Reviewed-on: https://gerrit.libreoffice.org/33202
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Tested-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/inc/rect.hxx')
-rw-r--r-- | starmath/inc/rect.hxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/starmath/inc/rect.hxx b/starmath/inc/rect.hxx index 5f20fdac1b6f..5c58b9d7efee 100644 --- a/starmath/inc/rect.hxx +++ b/starmath/inc/rect.hxx @@ -20,8 +20,6 @@ #ifndef INCLUDED_STARMATH_INC_RECT_HXX #define INCLUDED_STARMATH_INC_RECT_HXX -#include <new> - #include <rtl/ustring.hxx> #include <sal/log.hxx> #include <tools/gen.hxx> @@ -122,7 +120,6 @@ public: SmRect(const OutputDevice &rDev, const SmFormat *pFormat, const OUString &rText, long nBorderWidth); SmRect(long nWidth, long nHeight); - SmRect(const SmRect &rRect); sal_uInt16 GetBorderWidth() const { return nBorderWidth; } @@ -193,8 +190,6 @@ public: bool IsInsideRect(const Point &rPoint) const; bool IsInsideItalicRect(const Point &rPoint) const; - inline SmRect & operator = (const SmRect &rRect); - inline Rectangle AsRectangle() const; SmRect AsGlyphRect() const; }; @@ -225,13 +220,6 @@ inline long SmRect::GetBaseline() const } -inline SmRect & SmRect::operator = (const SmRect &rRect) -{ - new (this) SmRect(rRect); // placement new - return *this; -} - - inline Rectangle SmRect::AsRectangle() const { return Rectangle(Point(GetItalicLeft(), GetTop()), GetItalicSize()); |