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 /sal | |
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 'sal')
-rw-r--r-- | sal/rtl/bootstrap.cxx | 4 | ||||
-rw-r--r-- | sal/rtl/math.cxx | 16 | ||||
-rw-r--r-- | sal/rtl/uri.cxx | 4 |
3 files changed, 12 insertions, 12 deletions
diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx index 2a99e0aecda1..6455c35b2aaa 100644 --- a/sal/rtl/bootstrap.cxx +++ b/sal/rtl/bootstrap.cxx @@ -119,9 +119,9 @@ struct rtl_bootstrap_NameValue OUString sName; OUString sValue; - inline rtl_bootstrap_NameValue() + rtl_bootstrap_NameValue() {} - inline rtl_bootstrap_NameValue( + rtl_bootstrap_NameValue( OUString const & name, OUString const & value ) : sName( name ), sValue( value ) diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx index 4d0ecb199b61..72558a946131 100644 --- a/sal/rtl/math.cxx +++ b/sal/rtl/math.cxx @@ -81,19 +81,19 @@ struct StringTraits typedef rtl_String String; - static inline void createString(rtl_String ** pString, + static void createString(rtl_String ** pString, sal_Char const * pChars, sal_Int32 nLen) { rtl_string_newFromStr_WithLength(pString, pChars, nLen); } - static inline void createBuffer(rtl_String ** pBuffer, + static void createBuffer(rtl_String ** pBuffer, sal_Int32 * pCapacity) { rtl_string_new_WithLength(pBuffer, *pCapacity); } - static inline void appendChars(rtl_String ** pBuffer, sal_Int32 * pCapacity, + static void appendChars(rtl_String ** pBuffer, sal_Int32 * pCapacity, sal_Int32 * pOffset, sal_Char const * pChars, sal_Int32 nLen) { @@ -102,7 +102,7 @@ struct StringTraits *pOffset += nLen; } - static inline void appendAscii(rtl_String ** pBuffer, sal_Int32 * pCapacity, + static void appendAscii(rtl_String ** pBuffer, sal_Int32 * pCapacity, sal_Int32 * pOffset, sal_Char const * pStr, sal_Int32 nLen) { @@ -118,19 +118,19 @@ struct UStringTraits typedef rtl_uString String; - static inline void createString(rtl_uString ** pString, + static void createString(rtl_uString ** pString, sal_Unicode const * pChars, sal_Int32 nLen) { rtl_uString_newFromStr_WithLength(pString, pChars, nLen); } - static inline void createBuffer(rtl_uString ** pBuffer, + static void createBuffer(rtl_uString ** pBuffer, sal_Int32 * pCapacity) { rtl_uString_new_WithLength(pBuffer, *pCapacity); } - static inline void appendChars(rtl_uString ** pBuffer, + static void appendChars(rtl_uString ** pBuffer, sal_Int32 * pCapacity, sal_Int32 * pOffset, sal_Unicode const * pChars, sal_Int32 nLen) { @@ -139,7 +139,7 @@ struct UStringTraits *pOffset += nLen; } - static inline void appendAscii(rtl_uString ** pBuffer, + static void appendAscii(rtl_uString ** pBuffer, sal_Int32 * pCapacity, sal_Int32 * pOffset, sal_Char const * pStr, sal_Int32 nLen) { diff --git a/sal/rtl/uri.cxx b/sal/rtl/uri.cxx index 7edeb3067409..b00dfb99f472 100644 --- a/sal/rtl/uri.cxx +++ b/sal/rtl/uri.cxx @@ -318,9 +318,9 @@ struct Component sal_Unicode const * pBegin; sal_Unicode const * pEnd; - inline Component(): pBegin(nullptr), pEnd(nullptr) {} + Component(): pBegin(nullptr), pEnd(nullptr) {} - inline bool isPresent() const { return pBegin != nullptr; } + bool isPresent() const { return pBegin != nullptr; } inline sal_Int32 getLength() const; }; |