diff options
author | Noel Grandin <noel@peralex.com> | 2013-04-26 13:41:29 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-04-30 06:29:35 +0000 |
commit | 3872be543252a30d020e35233415c5fccc0ea806 (patch) | |
tree | a049ecaa735a1dd42c18aef9bb948ec396f939b8 /svx | |
parent | d6d896a121c0bab3ac27fafa5a4e810e48ec96c6 (diff) |
Clang cleanup, unused mutex variables
Some of these were doing nothing useful at all. I removed those.
A couple were protecting static data, and I fixed those to use Mutex
and MutexGuard properly.
Change-Id: I444d13f8b6c50e526cce8d69d09aeaf240e5c6ca
Reviewed-on: https://gerrit.libreoffice.org/3678
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/primitive2d/sdrprimitivetools.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/sdr/primitive2d/sdrprimitivetools.cxx b/svx/source/sdr/primitive2d/sdrprimitivetools.cxx index 3b9ea255e21d..bc4296f504b8 100644 --- a/svx/source/sdr/primitive2d/sdrprimitivetools.cxx +++ b/svx/source/sdr/primitive2d/sdrprimitivetools.cxx @@ -33,7 +33,9 @@ namespace drawinglayer { static vcl::DeleteOnDeinit< BitmapEx > aRetVal(0); static basegfx::BColor aColor; - ::osl::Mutex m_mutex; + static ::osl::Mutex aMutex; + + ::osl::MutexGuard aGuard(aMutex); if(!aRetVal.get() || rBColor != aColor) { |