diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-03 20:57:02 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-03 20:55:50 +0000 |
commit | 6cb9e6dad798ec59f055aebe84a9c4a21e4be40d (patch) | |
tree | 21a7d6c0b165251ba8e0f36e73c851d41ac9dd04 /sw/source/core/inc/wrong.hxx | |
parent | 7e8806cd728bf906e1a8f1d649bef7337f297b1c (diff) |
Remove redundant 'inline' keyword
...from function definitions occurring within class definitions. Done with
a rewriting Clang plugin (to be pushed later).
Change-Id: I9c6f2818a57ccdb361548895a7743107cbacdff8
Reviewed-on: https://gerrit.libreoffice.org/34874
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source/core/inc/wrong.hxx')
-rw-r--r-- | sw/source/core/inc/wrong.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/core/inc/wrong.hxx b/sw/source/core/inc/wrong.hxx index 67b11e1cb780..d0e38a0ca4e0 100644 --- a/sw/source/core/inc/wrong.hxx +++ b/sw/source/core/inc/wrong.hxx @@ -201,11 +201,11 @@ public: virtual SwWrongList* Clone(); virtual void CopyFrom( const SwWrongList& rCopy ); - inline WrongListType GetWrongListType() const { return meType; } - inline sal_Int32 GetBeginInv() const { return nBeginInvalid; } - inline sal_Int32 GetEndInv() const { return nEndInvalid; } + WrongListType GetWrongListType() const { return meType; } + sal_Int32 GetBeginInv() const { return nBeginInvalid; } + sal_Int32 GetEndInv() const { return nEndInvalid; } void SetInvalid( sal_Int32 nBegin, sal_Int32 nEnd ); - inline void Validate(){ nBeginInvalid = nEndInvalid = COMPLETE_STRING; } + void Validate(){ nBeginInvalid = nEndInvalid = COMPLETE_STRING; } void Invalidate( sal_Int32 nBegin, sal_Int32 nEnd ); bool InvalidateWrong(); enum class FreshState { FRESH, CURSOR, NOTHING }; @@ -227,19 +227,19 @@ public: // the other wrong list has to be inserted. void JoinList( SwWrongList* pNext, sal_Int32 nInsertPos ); - inline sal_Int32 Len( sal_uInt16 nIdx ) const + sal_Int32 Len( sal_uInt16 nIdx ) const { return nIdx < maList.size() ? maList[nIdx].mnLen : 0; } - inline sal_Int32 Pos( sal_uInt16 nIdx ) const + sal_Int32 Pos( sal_uInt16 nIdx ) const { return nIdx < maList.size() ? maList[nIdx].mnPos : 0; } - inline sal_uInt16 Count() const { return (sal_uInt16)maList.size(); } + sal_uInt16 Count() const { return (sal_uInt16)maList.size(); } - inline void Insert( const OUString& rType, + void Insert( const OUString& rType, css::uno::Reference< css::container::XStringKeyMap > const & xPropertyBag, sal_Int32 nNewPos, sal_Int32 nNewLen, sal_uInt16 nWhere ) { @@ -256,14 +256,14 @@ public: css::uno::Reference< css::container::XStringKeyMap > const & xPropertyBag, sal_Int32 nNewPos, sal_Int32 nNewLen ); - inline SwWrongList* SubList( sal_uInt16 nIdx ) const + SwWrongList* SubList( sal_uInt16 nIdx ) const { return nIdx < maList.size() ? maList[nIdx].mpSubList : nullptr; } void InsertSubList( sal_Int32 nNewPos, sal_Int32 nNewLen, sal_uInt16 nWhere, SwWrongList* pSubList ); - inline const SwWrongArea* GetElement( sal_uInt16 nIdx ) const + const SwWrongArea* GetElement( sal_uInt16 nIdx ) const { return nIdx < maList.size() ? &maList[nIdx] : nullptr; } |