BaseMutex->std::mutex in PDFIRawAdaptor

Change-Id: I3aae98e20ce20845835e1e5b7366a3f286e57ae5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148280
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2023-03-05 16:32:10 +02:00
parent db02d2e1a7
commit c5ebd807ca
2 changed files with 5 additions and 10 deletions

View File

@@ -44,7 +44,6 @@ namespace pdfi
{
PDFIHybridAdaptor::PDFIHybridAdaptor( const uno::Reference< uno::XComponentContext >& xContext ) :
PDFIHybridAdaptorBase( m_aMutex ),
m_xContext( xContext )
{
}
@@ -203,7 +202,6 @@ css::uno::Sequence<OUString> PDFIHybridAdaptor::getSupportedServiceNames()
}
PDFIRawAdaptor::PDFIRawAdaptor( OUString const & implementationName, const uno::Reference< uno::XComponentContext >& xContext ) :
PDFIAdaptorBase( m_aMutex ),
m_implementationName(implementationName),
m_xContext( xContext )
{

View File

@@ -34,19 +34,17 @@
#include <com/sun/star/document/XImporter.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx>
#include <comphelper/compbase.hxx>
namespace pdfi
{
typedef ::cppu::WeakComponentImplHelper<
typedef ::comphelper::WeakComponentImplHelper<
css::document::XFilter,
css::document::XImporter,
css::lang::XServiceInfo> PDFIHybridAdaptorBase;
class PDFIHybridAdaptor : private cppu::BaseMutex,
public PDFIHybridAdaptorBase
class PDFIHybridAdaptor : public PDFIHybridAdaptorBase
{
private:
css::uno::Reference<
@@ -72,15 +70,14 @@ namespace pdfi
css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
};
typedef ::cppu::WeakComponentImplHelper<
typedef ::comphelper::WeakComponentImplHelper<
css::xml::XImportFilter,
css::document::XImporter,
css::lang::XServiceInfo> PDFIAdaptorBase;
/** Adapts raw pdf import to XImportFilter interface
*/
class PDFIRawAdaptor : private cppu::BaseMutex,
public PDFIAdaptorBase
class PDFIRawAdaptor : public PDFIAdaptorBase
{
private:
OUString const m_implementationName;