diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-04 10:43:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-04 14:29:36 +0100 |
commit | 011d0d0078841a8ccebfdd1b360172314493c750 (patch) | |
tree | c0f112388ad298e9c7fabbc7bbc54efa1bd3efaf /include | |
parent | ef98a5aae0449cb93f11e46ea9c802326a5dd8ef (diff) |
remove svx/mutxhelp.hxx
which is a clone of cppu::BaseMutex
Change-Id: I6db266a4b67ac2d8b6c389cd27bf5bc7b9ecc754
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110402
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/mutxhelp.hxx | 36 | ||||
-rw-r--r-- | include/editeng/unofield.hxx | 4 | ||||
-rw-r--r-- | include/svx/unopage.hxx | 9 |
3 files changed, 7 insertions, 42 deletions
diff --git a/include/editeng/mutxhelp.hxx b/include/editeng/mutxhelp.hxx deleted file mode 100644 index 7487fee48e46..000000000000 --- a/include/editeng/mutxhelp.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_EDITENG_MUTXHELP_HXX -#define INCLUDED_EDITENG_MUTXHELP_HXX - -#include <osl/mutex.hxx> - -class SvxMutexHelper -{ -private: - ::osl::Mutex maMutex; - -public: - ::osl::Mutex& getMutex() { return maMutex; } -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/editeng/unofield.hxx b/include/editeng/unofield.hxx index 8eb521066347..173bb4b11121 100644 --- a/include/editeng/unofield.hxx +++ b/include/editeng/unofield.hxx @@ -27,7 +27,7 @@ #include <cppuhelper/component.hxx> #include <editeng/editengdllapi.h> -#include <editeng/mutxhelp.hxx> +#include <cppuhelper/basemutex.hxx> #include <memory> namespace com::sun::star::beans { class XPropertySetInfo; } @@ -41,7 +41,7 @@ class SvxFieldData; css::uno::Reference< css::uno::XInterface > EDITENG_DLLPUBLIC SvxUnoTextCreateTextField( const OUString& ServiceSpecifier ); -class EDITENG_DLLPUBLIC SvxUnoTextField final : public SvxMutexHelper, +class EDITENG_DLLPUBLIC SvxUnoTextField final : public cppu::BaseMutex, public ::cppu::OComponentHelper, public css::text::XTextField, public css::beans::XPropertySet, diff --git a/include/svx/unopage.hxx b/include/svx/unopage.hxx index a428254f6af7..bff0aa5fd5e3 100644 --- a/include/svx/unopage.hxx +++ b/include/svx/unopage.hxx @@ -27,7 +27,7 @@ #include <com/sun/star/drawing/XShapes3.hpp> #include <com/sun/star/drawing/XShapeGrouper.hpp> #include <com/sun/star/lang/XUnoTunnel.hpp> -#include <editeng/mutxhelp.hxx> +#include <cppuhelper/basemutex.hxx> #include <svx/svxdllapi.h> #include <svx/svdobjkind.hxx> @@ -52,14 +52,15 @@ enum class SdrInventor : sal_uInt32; #define TWIPS_TO_MM(val) ((val * 127 + 36) / 72) #define MM_TO_TWIPS(val) ((val * 72 + 63) / 127) -class SVXCORE_DLLPUBLIC SvxDrawPage : public ::cppu::WeakAggImplHelper7< css::drawing::XDrawPage, +class SVXCORE_DLLPUBLIC SvxDrawPage : protected cppu::BaseMutex, + public ::cppu::WeakAggImplHelper7< css::drawing::XDrawPage, css::drawing::XShapeGrouper, css::drawing::XShapes2, css::drawing::XShapes3, css::lang::XServiceInfo, css::lang::XUnoTunnel, - css::lang::XComponent>, - protected SvxMutexHelper + css::lang::XComponent> + { protected: cppu::OBroadcastHelper mrBHelper; |