diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-12-18 09:39:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-18 19:49:53 +0100 |
commit | 4c72b9d08afbb3c503c33b37771f1dc8968df1bb (patch) | |
tree | 0f5ccf813d3fc464bd932a3322a18d3f2e084bd3 /include/toolkit/helper | |
parent | fcba66fa86a77a3ca86705a4f145f8aae198ff87 (diff) |
use more cppu::BaseMutex
Change-Id: I9defebeb9cb0ba22df3578c8aae7501add36a11c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127078
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/toolkit/helper')
-rw-r--r-- | include/toolkit/helper/listenermultiplexer.hxx | 6 | ||||
-rw-r--r-- | include/toolkit/helper/mutexhelper.hxx | 36 |
2 files changed, 3 insertions, 39 deletions
diff --git a/include/toolkit/helper/listenermultiplexer.hxx b/include/toolkit/helper/listenermultiplexer.hxx index 45267944c40e..b562e9e2852c 100644 --- a/include/toolkit/helper/listenermultiplexer.hxx +++ b/include/toolkit/helper/listenermultiplexer.hxx @@ -42,10 +42,10 @@ #include <com/sun/star/awt/tree/XTreeExpansionListener.hpp> #include <com/sun/star/awt/tree/XTreeEditListener.hpp> #include <com/sun/star/view/XSelectionChangeListener.hpp> +#include <cppuhelper/basemutex.hxx> #include <cppuhelper/queryinterface.hxx> #include <cppuhelper/weak.hxx> #include <comphelper/interfacecontainer3.hxx> -#include <toolkit/helper/mutexhelper.hxx> #include <toolkit/helper/macros.hxx> #include <com/sun/star/awt/grid/XGridSelectionListener.hpp> #include <com/sun/star/awt/tab/XTabPageContainerListener.hpp> @@ -53,7 +53,7 @@ // class ListenerMultiplexerBase template <class ListenerT> -class UNLESS_MERGELIBS(TOOLKIT_DLLPUBLIC) ListenerMultiplexerBase : public MutexHelper, +class UNLESS_MERGELIBS(TOOLKIT_DLLPUBLIC) ListenerMultiplexerBase : public cppu::BaseMutex, public ::comphelper::OInterfaceContainerHelper3<ListenerT>, public css::uno::XInterface { @@ -65,7 +65,7 @@ protected: public: ListenerMultiplexerBase( ::cppu::OWeakObject& rSource ) - : ::comphelper::OInterfaceContainerHelper3<ListenerT>(GetMutex()), mrContext(rSource) + : ::comphelper::OInterfaceContainerHelper3<ListenerT>(m_aMutex), mrContext(rSource) { } diff --git a/include/toolkit/helper/mutexhelper.hxx b/include/toolkit/helper/mutexhelper.hxx deleted file mode 100644 index 80c6c7303e67..000000000000 --- a/include/toolkit/helper/mutexhelper.hxx +++ /dev/null @@ -1,36 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_TOOLKIT_HELPER_MUTEXHELPER_HXX -#define INCLUDED_TOOLKIT_HELPER_MUTEXHELPER_HXX - -#include <osl/mutex.hxx> - -class MutexHelper -{ -private: - ::osl::Mutex maMutex; - -public: - ::osl::Mutex& GetMutex() { return maMutex; } -}; - -#endif // INCLUDED_TOOLKIT_HELPER_MUTEXHELPER_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |