use comphelper::WeakComponentImplHelper for UIObjectUnoObj

Change-Id: I5aa340e9bc8abc498f37636f191c47c738fa1c63
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147585
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2023-02-23 15:11:17 +02:00
parent 3900f16e69
commit 89f98a2a9a
2 changed files with 3 additions and 6 deletions

View File

@@ -41,7 +41,6 @@ struct Notifier {
}
UIObjectUnoObj::UIObjectUnoObj(std::unique_ptr<UIObject> pObj):
UIObjectBase(m_aMutex),
mpObj(std::move(pObj))
{
}

View File

@@ -9,8 +9,7 @@
#pragma once
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx>
#include <comphelper/compbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/ui/test/XUIObject.hpp>
@@ -18,12 +17,11 @@
#include <vcl/uitest/uiobject.hxx>
typedef ::cppu::WeakComponentImplHelper <
typedef ::comphelper::WeakComponentImplHelper <
css::ui::test::XUIObject, css::lang::XServiceInfo
> UIObjectBase;
class UIObjectUnoObj : public cppu::BaseMutex,
public UIObjectBase
class UIObjectUnoObj : public UIObjectBase
{
private:
std::unique_ptr<UIObject> mpObj;