OSL : remove useless rtl::Static in debugbase
Change-Id: I54ef4d1b492409265496c7f2b852568274bcf073 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123321 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
eea7af10d9
commit
96726f4a7f
@@ -56,8 +56,6 @@ bool isSubStr( char const* pStr, OString const& subStr )
|
|||||||
return rtl_str_indexOfStr( pStr, subStr.getStr() ) >= 0;
|
return rtl_str_indexOfStr( pStr, subStr.getStr() ) >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct DebugBaseMutex : rtl::Static<osl::Mutex, DebugBaseMutex> {};
|
|
||||||
|
|
||||||
} // anon namespace
|
} // anon namespace
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -72,7 +70,8 @@ extern "C" {
|
|||||||
osl::Mutex & SAL_CALL osl_detail_ObjectRegistry_getMutex()
|
osl::Mutex & SAL_CALL osl_detail_ObjectRegistry_getMutex()
|
||||||
SAL_THROW_EXTERN_C()
|
SAL_THROW_EXTERN_C()
|
||||||
{
|
{
|
||||||
return DebugBaseMutex::get();
|
static osl::Mutex aMutex;
|
||||||
|
return aMutex;
|
||||||
}
|
}
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
|
Reference in New Issue
Block a user