diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-12 09:27:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-12 09:27:50 +0100 |
commit | 981adae1b0705c94ac8a712fe484aff911d8b086 (patch) | |
tree | 2c59d3f4ca436fc820c00e4f898435d9b245c42a /sw | |
parent | 7ae8e767b9696bac18a867c90c13af246786c335 (diff) |
ditch some inline keywords
Change-Id: Idc5c0608a9bc5b6230f603d1deb2327887960204
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/possiz.hxx | 77 |
1 files changed, 37 insertions, 40 deletions
diff --git a/sw/source/core/text/possiz.hxx b/sw/source/core/text/possiz.hxx index 1efb94133111..4c59142f9ce4 100644 --- a/sw/source/core/text/possiz.hxx +++ b/sw/source/core/text/possiz.hxx @@ -28,48 +28,45 @@ class SwPosSize sal_uInt16 nWidth; sal_uInt16 nHeight; public: - inline SwPosSize( const sal_uInt16 nW = 0, const sal_uInt16 nH = 0 ) - : nWidth(nW), nHeight(nH) { } - explicit inline SwPosSize( const Size &rSize ) - : nWidth(sal_uInt16(rSize.Width())), nHeight(sal_uInt16(rSize.Height())){ } - inline sal_uInt16 Height() const { return nHeight; } - inline void Height( const sal_uInt16 nNew ) { nHeight = nNew; } - inline sal_uInt16 Width() const { return nWidth; } - inline void Width( const sal_uInt16 nNew ) { nWidth = nNew; } - - inline Size SvLSize() const { return Size( nWidth, nHeight ); } - inline void SvLSize( const Size &rSize ); - inline void SvXSize( const Size &rSize ); - inline SwPosSize &operator=( const SwPosSize &rSize ); - inline SwPosSize &operator=( const Size &rSize ); + SwPosSize( const sal_uInt16 nW = 0, const sal_uInt16 nH = 0 ) + : nWidth(nW) + , nHeight(nH) + { + } + explicit SwPosSize( const Size &rSize ) + : nWidth(sal_uInt16(rSize.Width())) + ,nHeight(sal_uInt16(rSize.Height())) + { + } + sal_uInt16 Height() const { return nHeight; } + void Height( const sal_uInt16 nNew ) { nHeight = nNew; } + sal_uInt16 Width() const { return nWidth; } + void Width( const sal_uInt16 nNew ) { nWidth = nNew; } + Size SvLSize() const { return Size( nWidth, nHeight ); } + void SvLSize( const Size &rSize ) + { + nWidth = sal_uInt16(rSize.Width()); + nHeight = sal_uInt16(rSize.Height()); + } + void SvXSize( const Size &rSize ) + { + nHeight = sal_uInt16(rSize.Width()); + nWidth = sal_uInt16(rSize.Height()); + } + SwPosSize& operator=(const SwPosSize &rSize ) + { + nWidth = rSize.Width(); + nHeight = rSize.Height(); + return *this; + } + SwPosSize& operator=( const Size &rSize ) + { + nWidth = sal_uInt16(rSize.Width()); + nHeight = sal_uInt16(rSize.Height()); + return *this; + } }; -inline SwPosSize &SwPosSize::operator=(const SwPosSize &rSize ) -{ - nWidth = rSize.Width(); - nHeight = rSize.Height(); - return *this; -} - -inline void SwPosSize::SvLSize( const Size &rSize ) -{ - nWidth = sal_uInt16(rSize.Width()); - nHeight = sal_uInt16(rSize.Height()); -} - -inline void SwPosSize::SvXSize( const Size &rSize ) -{ - nHeight = sal_uInt16(rSize.Width()); - nWidth = sal_uInt16(rSize.Height()); -} - -inline SwPosSize &SwPosSize::operator=( const Size &rSize ) -{ - nWidth = sal_uInt16(rSize.Width()); - nHeight = sal_uInt16(rSize.Height()); - return *this; -} - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |