summaryrefslogtreecommitdiffstats
path: root/sal/rtl/strtmpl.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-02 16:37:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-02 16:37:55 +0100
commit92bface85dc413fc015fd651c538f580ae2da151 (patch)
treed51fd5732cfd6a56f33a1b4adc00df75a1fbb5ad /sal/rtl/strtmpl.cxx
parenttypo (diff)
downloadcore-92bface85dc413fc015fd651c538f580ae2da151.tar.gz
core-92bface85dc413fc015fd651c538f580ae2da151.zip
Turn function-like macro into true function
Change-Id: I70330b1f4844f33779f814377afaf90e0a219b1d
Diffstat (limited to 'sal/rtl/strtmpl.cxx')
-rw-r--r--sal/rtl/strtmpl.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/sal/rtl/strtmpl.cxx b/sal/rtl/strtmpl.cxx
index 71052bc26941..4a90c2ea74e4 100644
--- a/sal/rtl/strtmpl.cxx
+++ b/sal/rtl/strtmpl.cxx
@@ -1191,10 +1191,14 @@ static IMPL_RTL_STRCODE* IMPL_RTL_STRINGNAME( ImplNewCopy )( IMPL_RTL_STRINGDATA
/* String-Class functions */
/* ======================================================================= */
-#define IMPL_RTL_ACQUIRE( pThis ) \
-{ \
- if (!SAL_STRING_IS_STATIC (pThis)) \
- osl_atomic_increment( &((pThis)->refCount) ); \
+namespace {
+
+void IMPL_RTL_ACQUIRE(IMPL_RTL_STRINGDATA * pThis)
+{
+ if (!SAL_STRING_IS_STATIC (pThis))
+ osl_atomic_increment( &((pThis)->refCount) );
+}
+
}
/* ----------------------------------------------------------------------- */