summaryrefslogtreecommitdiff
path: root/sal/osl/unx/mutex.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 11:27:42 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 11:27:42 +0200
commite60cea3c8d14c1146ed2855024872fecb0959f66 (patch)
tree213022ad44fe31ea4f55fcc874d7135d024207f1 /sal/osl/unx/mutex.cxx
parent0fc8d8f6eba3ff49e7252fce661aa61dccfb3740 (diff)
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: Iad01e628b692a6dcf882696908de0ef1f24c04c4
Diffstat (limited to 'sal/osl/unx/mutex.cxx')
-rw-r--r--sal/osl/unx/mutex.cxx2
1 files changed, 1 insertions, 1 deletions
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) {