From 909a76c7da77d8ecee8d797dd1ba77a5062ac303 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 30 May 2014 14:09:40 +0200 Subject: New loplugin:inlinevisible to flag inline functions marked DLLEXPORT ...which does not make sense. On Linux and Mac OS X, they potentially end up exported from multiple libs (weakly, though), while on Windows the potentially even end up not emitted at all, which could cause link errors. Change-Id: I092c9ba39e686c17b6e91581cdd4753f1c4d582f --- include/comphelper/string.hxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'include/comphelper') diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx index 181ca8b92a6e..ca47fb560968 100644 --- a/include/comphelper/string.hxx +++ b/include/comphelper/string.hxx @@ -253,13 +253,13 @@ namespace detail @return rBuf; */ -COMPHELPER_DLLPUBLIC inline OStringBuffer& truncateToLength( +inline OStringBuffer& truncateToLength( OStringBuffer& rBuffer, sal_Int32 nLength) SAL_THROW(()) { return detail::truncateToLength(rBuffer, nLength); } -COMPHELPER_DLLPUBLIC inline OUStringBuffer& truncateToLength( +inline OUStringBuffer& truncateToLength( OUStringBuffer& rBuffer, sal_Int32 nLength) SAL_THROW(()) { return detail::truncateToLength(rBuffer, nLength); @@ -294,14 +294,14 @@ namespace detail @return rBuf; */ -COMPHELPER_DLLPUBLIC inline OStringBuffer& padToLength( +inline OStringBuffer& padToLength( OStringBuffer& rBuffer, sal_Int32 nLength, sal_Char cFill = '\0') SAL_THROW(()) { return detail::padToLength(rBuffer, nLength, cFill); } -COMPHELPER_DLLPUBLIC inline OUStringBuffer& padToLength( +inline OUStringBuffer& padToLength( OUStringBuffer& rBuffer, sal_Int32 nLength, sal_Unicode cFill = '\0') SAL_THROW(()) { @@ -433,32 +433,32 @@ COMPHELPER_DLLPUBLIC bool isdigitAsciiString(const OString &rString); */ COMPHELPER_DLLPUBLIC bool isdigitAsciiString(const OUString &rString); -COMPHELPER_DLLPUBLIC inline bool isdigitAscii(sal_Unicode c) +inline bool isdigitAscii(sal_Unicode c) { return ((c >= '0') && (c <= '9')); } -COMPHELPER_DLLPUBLIC inline bool isxdigitAscii(sal_Unicode c) +inline bool isxdigitAscii(sal_Unicode c) { return isdigitAscii(c) || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f'); } -COMPHELPER_DLLPUBLIC inline bool islowerAscii(sal_Unicode c) +inline bool islowerAscii(sal_Unicode c) { return ((c >= 'a') && (c <= 'z')); } -COMPHELPER_DLLPUBLIC inline bool isupperAscii(sal_Unicode c) +inline bool isupperAscii(sal_Unicode c) { return ((c >= 'A') && (c <= 'Z')); } -COMPHELPER_DLLPUBLIC inline bool isalphaAscii(sal_Unicode c) +inline bool isalphaAscii(sal_Unicode c) { return islowerAscii(c) || isupperAscii(c); } -COMPHELPER_DLLPUBLIC inline bool isalnumAscii(sal_Unicode c) +inline bool isalnumAscii(sal_Unicode c) { return isalphaAscii(c) || isdigitAscii(c); } -- cgit