summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sdext/source/pdfimport/filterdet.cxx3
-rw-r--r--sdext/source/pdfimport/filterdet.hxx7
2 files changed, 4 insertions, 6 deletions
diff --git a/sdext/source/pdfimport/filterdet.cxx b/sdext/source/pdfimport/filterdet.cxx
index 69aa90a26b9b..f6356d8676e8 100644
--- a/sdext/source/pdfimport/filterdet.cxx
+++ b/sdext/source/pdfimport/filterdet.cxx
@@ -184,7 +184,6 @@ unsigned int FileEmitContext::readOrigBytes( unsigned int nOrigOffset, unsigned
PDFDetector::PDFDetector( uno::Reference< uno::XComponentContext > xContext) :
- PDFDetectorBase( m_aMutex ),
m_xContext(std::move( xContext ))
{}
@@ -287,7 +286,7 @@ bool copyToTemp(uno::Reference<io::XInputStream> const& xInput, oslFileHandle& r
// XExtendedFilterDetection
OUString SAL_CALL PDFDetector::detect( uno::Sequence< beans::PropertyValue >& rFilterData )
{
- osl::MutexGuard const guard( m_aMutex );
+ std::unique_lock guard( m_aMutex );
bool bSuccess = false;
// get the InputStream carrying the PDF content
diff --git a/sdext/source/pdfimport/filterdet.hxx b/sdext/source/pdfimport/filterdet.hxx
index c5f8b0d58772..48bc8ca4e12a 100644
--- a/sdext/source/pdfimport/filterdet.hxx
+++ b/sdext/source/pdfimport/filterdet.hxx
@@ -24,18 +24,17 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/io/XStream.hpp>
-#include <cppuhelper/compbase.hxx>
+#include <comphelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx>
namespace pdfi
{
-typedef ::cppu::WeakComponentImplHelper<
+typedef ::comphelper::WeakComponentImplHelper<
css::document::XExtendedFilterDetection, css::lang::XServiceInfo> PDFDetectorBase;
-class PDFDetector : private cppu::BaseMutex,
- public PDFDetectorBase
+class PDFDetector : public PDFDetectorBase
{
private:
css::uno::Reference<