summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-22 15:14:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-22 17:48:21 +0200
commit62da1fde05ca2c4d13b294699e5672743e9a95d8 (patch)
treedbeb461014a9db174a919d4ef132e459489a8c16 /extensions
parentb1faaf7335d2c7bb951c1170e66ee6aab9d37e66 (diff)
pvs-studio: V670 The uninitialized class member 'm_aMutex' is used
Change-Id: I7ac2662afe77e6e9170b004b335635f97ae03692 Reviewed-on: https://gerrit.libreoffice.org/62184 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/propertyhandler.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/propertyhandler.hxx b/extensions/source/propctrlr/propertyhandler.hxx
index 325f207a2312..da77b687e24f 100644
--- a/extensions/source/propctrlr/propertyhandler.hxx
+++ b/extensions/source/propctrlr/propertyhandler.hxx
@@ -38,6 +38,7 @@
#include <com/sun/star/inspection/XPropertyHandler.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <osl/interlck.h>
+#include <cppuhelper/basemutex.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/implbase1.hxx>
#include <comphelper/uno3.hxx>
@@ -69,7 +70,8 @@ namespace pcr
> PropertyHandler_Base;
/** the base class for property handlers
*/
- class PropertyHandler : public PropertyHandler_Base
+ class PropertyHandler : public ::cppu::BaseMutex
+ , public PropertyHandler_Base
{
private:
/// cache for getSupportedProperties
@@ -82,7 +84,6 @@ namespace pcr
PropertyChangeListeners m_aPropertyListeners;
protected:
- mutable ::osl::Mutex m_aMutex;
/// the context in which the instance was created
css::uno::Reference< css::uno::XComponentContext > m_xContext;
/// the component we're inspecting