summaryrefslogtreecommitdiff
path: root/include/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-07 15:12:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-10 08:52:36 +0200
commit2841cf6c9f733c2c26e90b8494b5b076cc9d507d (patch)
tree71eca2a1f47f9860aa0ad9f34898e227d258eb1a /include/unotools
parent52117bb8c337c98c200b6846c8d9fa2d1831ac51 (diff)
loplugin:inlinefields in utl::ReadWriteMutex
Change-Id: Ibd31d1c0ec154be886f9fd4d2e7a439b2d7f5f4a Reviewed-on: https://gerrit.libreoffice.org/36267 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/unotools')
-rw-r--r--include/unotools/readwritemutexguard.hxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/unotools/readwritemutexguard.hxx b/include/unotools/readwritemutexguard.hxx
index 01a022c26217..94767024a911 100644
--- a/include/unotools/readwritemutexguard.hxx
+++ b/include/unotools/readwritemutexguard.hxx
@@ -31,21 +31,14 @@ class ReadWriteMutex
sal_uInt32 nReadCount;
sal_uInt32 nBlockCriticalCount;
- ::osl::Mutex* pMutex;
- ::osl::Mutex* pWriteMutex;
+ ::osl::Mutex maMutex;
+ ::osl::Mutex maWriteMutex;
public:
ReadWriteMutex()
: nReadCount(0)
, nBlockCriticalCount(0)
- , pMutex( new ::osl::Mutex )
- , pWriteMutex( new ::osl::Mutex )
{}
- ~ReadWriteMutex()
- {
- delete pMutex;
- delete pWriteMutex;
- }
};
namespace ReadWriteGuardMode {