From e60cea3c8d14c1146ed2855024872fecb0959f66 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 2 Jun 2015 11:27:42 +0200 Subject: loplugin:cstylecast: deal with those that are (technically) const_cast Change-Id: Iad01e628b692a6dcf882696908de0ef1f24c04c4 --- sal/osl/unx/mutex.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sal/osl/unx/mutex.cxx') diff --git a/sal/osl/unx/mutex.cxx b/sal/osl/unx/mutex.cxx index 515a2edb9102..bc51fbac498f 100644 --- a/sal/osl/unx/mutex.cxx +++ b/sal/osl/unx/mutex.cxx @@ -163,7 +163,7 @@ static void globalMutexInitImpl() { oslMutex * SAL_CALL osl_getGlobalMutex() { /* necessary to get a "oslMutex *" */ - static oslMutex globalMutex = (oslMutex) &globalMutexImpl; + static oslMutex globalMutex = &globalMutexImpl; static pthread_once_t once = PTHREAD_ONCE_INIT; if (pthread_once(&once, &globalMutexInitImpl) != 0) { -- cgit