summaryrefslogtreecommitdiff
path: root/drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-04-26 13:41:29 +0200
committerTor Lillqvist <tml@iki.fi>2013-04-30 06:29:35 +0000
commit3872be543252a30d020e35233415c5fccc0ea806 (patch)
treea049ecaa735a1dd42c18aef9bb948ec396f939b8 /drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx
parentd6d896a121c0bab3ac27fafa5a4e810e48ec96c6 (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 'drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx')
-rw-r--r--drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx b/drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx
index 77487db04db8..495c06f303dd 100644
--- a/drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx
+++ b/drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx
@@ -42,9 +42,10 @@ namespace drawinglayer
static Primitive3DSequence aLineTubeList;
static sal_uInt32 nLineTubeSegments(0L);
static attribute::MaterialAttribute3D aLineMaterial;
+ static ::osl::Mutex aMutex;
// may exclusively change static data, use mutex
- ::osl::Mutex m_mutex;
+ ::osl::MutexGuard aGuard(aMutex);
if(nSegments != nLineTubeSegments || !(rMaterial == aLineMaterial))
{