diff options
author | Arnaud Versini <arnaud.versini@libreoffice.org> | 2021-10-09 20:45:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-10 19:46:36 +0200 |
commit | 96726f4a7f2f23972c987e9a4be75539f24fb0b7 (patch) | |
tree | b987010719053334f1b46eda023e59c058ba9e08 /sal | |
parent | eea7af10d9ff1407c90abc233f6ea470fa832b1c (diff) |
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>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/all/debugbase.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sal/osl/all/debugbase.cxx b/sal/osl/all/debugbase.cxx index 209dc55e1e32..208fa3e92a92 100644 --- a/sal/osl/all/debugbase.cxx +++ b/sal/osl/all/debugbase.cxx @@ -56,8 +56,6 @@ bool isSubStr( char const* pStr, OString const& subStr ) return rtl_str_indexOfStr( pStr, subStr.getStr() ) >= 0; } -struct DebugBaseMutex : rtl::Static<osl::Mutex, DebugBaseMutex> {}; - } // anon namespace extern "C" { @@ -72,7 +70,8 @@ extern "C" { osl::Mutex & SAL_CALL osl_detail_ObjectRegistry_getMutex() SAL_THROW_EXTERN_C() { - return DebugBaseMutex::get(); + static osl::Mutex aMutex; + return aMutex; } #ifdef __clang__ #pragma clang diagnostic pop |