Kaydet (Commit) 981adae1 authored tarafından Caolán McNamara's avatar Caolán McNamara

ditch some inline keywords

Change-Id: Idc5c0608a9bc5b6230f603d1deb2327887960204
üst 7ae8e767
...@@ -28,48 +28,45 @@ class SwPosSize ...@@ -28,48 +28,45 @@ class SwPosSize
sal_uInt16 nWidth; sal_uInt16 nWidth;
sal_uInt16 nHeight; sal_uInt16 nHeight;
public: public:
inline SwPosSize( const sal_uInt16 nW = 0, const sal_uInt16 nH = 0 ) SwPosSize( const sal_uInt16 nW = 0, const sal_uInt16 nH = 0 )
: nWidth(nW), nHeight(nH) { } : nWidth(nW)
explicit inline SwPosSize( const Size &rSize ) , nHeight(nH)
: 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; } explicit SwPosSize( const Size &rSize )
inline sal_uInt16 Width() const { return nWidth; } : nWidth(sal_uInt16(rSize.Width()))
inline void Width( const sal_uInt16 nNew ) { nWidth = nNew; } ,nHeight(sal_uInt16(rSize.Height()))
{
inline Size SvLSize() const { return Size( nWidth, nHeight ); } }
inline void SvLSize( const Size &rSize ); sal_uInt16 Height() const { return nHeight; }
inline void SvXSize( const Size &rSize ); void Height( const sal_uInt16 nNew ) { nHeight = nNew; }
inline SwPosSize &operator=( const SwPosSize &rSize ); sal_uInt16 Width() const { return nWidth; }
inline SwPosSize &operator=( const Size &rSize ); 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 #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment