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 /scaddins | |
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 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysishelper.hxx | 26 | ||||
-rw-r--r-- | scaddins/source/datefunc/datefunc.hxx | 12 | ||||
-rw-r--r-- | scaddins/source/pricing/pricing.hxx | 12 |
3 files changed, 25 insertions, 25 deletions
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx index 80679d867edc..6e488404ab21 100644 --- a/scaddins/source/analysis/analysishelper.hxx +++ b/scaddins/source/analysis/analysishelper.hxx @@ -289,11 +289,11 @@ public: SortedIndividualInt32List(); ~SortedIndividualInt32List(); - inline sal_uInt32 Count() const + sal_uInt32 Count() const { return maVector.size(); } /// @return element on position nIndex or 0 on invalid index - inline sal_Int32 Get( sal_uInt32 n ) const + sal_Int32 Get( sal_uInt32 n ) const { return maVector[n]; } /// @return true if nVal (internal date representation) is contained @@ -317,11 +317,11 @@ class ScaDoubleList private: std::vector<double> maVector; protected: - inline void ListAppend( double fValue ) { maVector.push_back(fValue); } + void ListAppend( double fValue ) { maVector.push_back(fValue); } /// @throws css::uno::RuntimeException /// @throws css::lang::IllegalArgumentException - inline void Append( double fValue ) + void Append( double fValue ) { if( CheckInsert( fValue ) ) ListAppend( fValue ); } /** @param rAnyConv must be an initialized ScaAnyConmverter @@ -357,9 +357,9 @@ protected: public: virtual ~ScaDoubleList() {} - inline sal_uInt32 Count() const + sal_uInt32 Count() const { return maVector.size(); } - inline double Get( sal_uInt32 n ) const + double Get( sal_uInt32 n ) const { return maVector[n]; } /// @throws css::uno::RuntimeException @@ -501,9 +501,9 @@ public: inline const Complex* Get( sal_uInt32 nIndex ) const; - inline bool empty() const + bool empty() const { return maVector.empty(); } - inline sal_uInt32 Count() const + sal_uInt32 Count() const { return maVector.size(); } inline void Append( Complex* pNew ); @@ -803,9 +803,9 @@ public: ScaDate& operator=( const ScaDate& rCopy ); /// @return the current month. - inline sal_uInt16 getMonth() const { return nMonth; }; + sal_uInt16 getMonth() const { return nMonth; }; /// @return the current year. - inline sal_uInt16 getYear() const { return nYear; }; + sal_uInt16 getYear() const { return nYear; }; /// adds/subtracts the given count of months, adjusts day /// @@ -827,9 +827,9 @@ public: static sal_Int32 getDiff( const ScaDate& rFrom, const ScaDate& rTo ); bool operator<( const ScaDate& rCmp ) const; - inline bool operator<=( const ScaDate& rCmp ) const { return !(rCmp < *this); } - inline bool operator>( const ScaDate& rCmp ) const { return rCmp < *this; } - inline bool operator>=( const ScaDate& rCmp ) const { return !(*this < rCmp); } + bool operator<=( const ScaDate& rCmp ) const { return !(rCmp < *this); } + bool operator>( const ScaDate& rCmp ) const { return rCmp < *this; } + bool operator>=( const ScaDate& rCmp ) const { return !(*this < rCmp); } }; inline sal_uInt16 ScaDate::getDaysInMonth() const diff --git a/scaddins/source/datefunc/datefunc.hxx b/scaddins/source/datefunc/datefunc.hxx index d2b460851e24..e06c292f9780 100644 --- a/scaddins/source/datefunc/datefunc.hxx +++ b/scaddins/source/datefunc/datefunc.hxx @@ -81,16 +81,16 @@ public: ScaFuncData( const ScaFuncDataBase& rBaseData, ResMgr& rRscMgr ); ~ScaFuncData(); - inline sal_uInt16 GetUINameID() const { return nUINameID; } - inline sal_uInt16 GetDescrID() const { return nDescrID; } - inline ScaCategory GetCategory() const { return eCat; } - inline bool IsDouble() const { return bDouble; } + sal_uInt16 GetUINameID() const { return nUINameID; } + sal_uInt16 GetDescrID() const { return nDescrID; } + ScaCategory GetCategory() const { return eCat; } + bool IsDouble() const { return bDouble; } sal_uInt16 GetStrIndex( sal_uInt16 nParam ) const; - inline bool Is( const OUString& rCompare ) const + bool Is( const OUString& rCompare ) const { return aIntName == rCompare; } - inline const std::vector<OUString>& GetCompNameList() const { return aCompList; } + const std::vector<OUString>& GetCompNameList() const { return aCompList; } }; typedef std::vector<ScaFuncData> ScaFuncDataList; diff --git a/scaddins/source/pricing/pricing.hxx b/scaddins/source/pricing/pricing.hxx index 55e7855007ea..abeb6ab0286a 100644 --- a/scaddins/source/pricing/pricing.hxx +++ b/scaddins/source/pricing/pricing.hxx @@ -91,16 +91,16 @@ public: ScaFuncData( const ScaFuncDataBase& rBaseData, ResMgr& rRscMgr ); ~ScaFuncData(); - inline sal_uInt16 GetUINameID() const { return nUINameID; } - inline sal_uInt16 GetDescrID() const { return nDescrID; } - inline ScaCategory GetCategory() const { return eCat; } - inline bool IsDouble() const { return bDouble; } + sal_uInt16 GetUINameID() const { return nUINameID; } + sal_uInt16 GetDescrID() const { return nDescrID; } + ScaCategory GetCategory() const { return eCat; } + bool IsDouble() const { return bDouble; } sal_uInt16 GetStrIndex( sal_uInt16 nParam ) const; - inline bool Is( const OUString& rCompare ) const + bool Is( const OUString& rCompare ) const { return aIntName == rCompare; } - inline const std::vector<OUString>& GetCompNameList() const { return aCompList; } + const std::vector<OUString>& GetCompNameList() const { return aCompList; } }; |