From c317b7f963f6d3fb2f325bc212c148d61b3dfa31 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 13 Dec 2012 13:36:57 +0200 Subject: make the "inline" method attributes match with the method definition. And make the whitespace layout a little cleaner. Change-Id: I12b042600f061e74825de92ce836ee34ebdfabdb --- tools/inc/tools/gen.hxx | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'tools') diff --git a/tools/inc/tools/gen.hxx b/tools/inc/tools/gen.hxx index 2ddb21fb9cb5..568d873d13ea 100644 --- a/tools/inc/tools/gen.hxx +++ b/tools/inc/tools/gen.hxx @@ -374,44 +374,44 @@ public: long& Top() { return nTop; } long& Bottom() { return nBottom; } - inline Point TopLeft() const; - Point TopRight() const; - Point TopCenter() const; - Point BottomLeft() const; - Point BottomRight() const; - Point BottomCenter() const; - Point LeftCenter() const; - Point RightCenter() const; - Point Center() const; - - void Move( long nHorzMove, long nVertMove ); + inline Point TopLeft() const; + inline Point TopRight() const; + inline Point TopCenter() const; + inline Point BottomLeft() const; + inline Point BottomRight() const; + inline Point BottomCenter() const; + inline Point LeftCenter() const; + inline Point RightCenter() const; + inline Point Center() const; + + inline void Move( long nHorzMove, long nVertMove ); inline void Transpose(); inline void SetPos( const Point& rPoint ); void SetSize( const Size& rSize ); inline Size GetSize() const; - long GetWidth() const; - long GetHeight() const; + inline long GetWidth() const; + inline long GetHeight() const; Rectangle& Union( const Rectangle& rRect ); Rectangle& Intersection( const Rectangle& rRect ); - Rectangle GetUnion( const Rectangle& rRect ) const; - Rectangle GetIntersection( const Rectangle& rRect ) const; + inline Rectangle GetUnion( const Rectangle& rRect ) const; + inline Rectangle GetIntersection( const Rectangle& rRect ) const; void Justify(); - sal_Bool IsInside( const Point& rPOINT ) const; - sal_Bool IsInside( const Rectangle& rRect ) const; - sal_Bool IsOver( const Rectangle& rRect ) const; + sal_Bool IsInside( const Point& rPOINT ) const; + sal_Bool IsInside( const Rectangle& rRect ) const; + sal_Bool IsOver( const Rectangle& rRect ) const; void SetEmpty() { nRight = nBottom = RECT_EMPTY; } - sal_Bool IsEmpty() const; + inline sal_Bool IsEmpty() const; - sal_Bool operator == ( const Rectangle& rRect ) const; - sal_Bool operator != ( const Rectangle& rRect ) const; + inline sal_Bool operator == ( const Rectangle& rRect ) const; + inline sal_Bool operator != ( const Rectangle& rRect ) const; - Rectangle& operator += ( const Point& rPt ); - Rectangle& operator -= ( const Point& rPt ); + inline Rectangle& operator += ( const Point& rPt ); + inline Rectangle& operator -= ( const Point& rPt ); friend inline Rectangle operator + ( const Rectangle& rRect, const Point& rPt ); friend inline Rectangle operator - ( const Rectangle& rRect, const Point& rPt ); -- cgit