Kaydet (Commit) 92bface8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Turn function-like macro into true function

Change-Id: I70330b1f4844f33779f814377afaf90e0a219b1d
üst e8eec3b3
......@@ -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) );
}
}
/* ----------------------------------------------------------------------- */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment