summaryrefslogtreecommitdiff
path: root/extensions/source/scanner
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-01-11 14:37:03 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-01-11 14:37:03 +0100
commit9d4bfc6162e1627f7bfe82f98a4ba4916296f5dd (patch)
tree8b9482a321047cbbda6c6b29179a10b97b0325d9 /extensions/source/scanner
parent753b516cae68a5ac09c6389b9e8cd8a52e40ae11 (diff)
Use WeakImplHelper
Change-Id: Iee4aec239bf095233aac800f70688ad9db7949df
Diffstat (limited to 'extensions/source/scanner')
-rw-r--r--extensions/source/scanner/sane.hxx8
-rw-r--r--extensions/source/scanner/scanunx.cxx11
2 files changed, 1 insertions, 18 deletions
diff --git a/extensions/source/scanner/sane.hxx b/extensions/source/scanner/sane.hxx
index 504ede7804f2..b96e89cced3a 100644
--- a/extensions/source/scanner/sane.hxx
+++ b/extensions/source/scanner/sane.hxx
@@ -29,7 +29,7 @@
// - BitmapTransporter -
-class BitmapTransporter : public OWeakObject, public css::awt::XBitmap
+class BitmapTransporter: public cppu::WeakImplHelper<css::awt::XBitmap>
{
SvMemoryStream m_aStream;
osl::Mutex m_aProtector;
@@ -39,12 +39,6 @@ public:
BitmapTransporter();
virtual ~BitmapTransporter();
-
- // XInterface
- virtual Any SAL_CALL queryInterface( const Type & rType ) throw( RuntimeException, std::exception ) override;
- virtual void SAL_CALL acquire() throw() override { OWeakObject::acquire(); }
- virtual void SAL_CALL release() throw() override { OWeakObject::release(); }
-
virtual css::awt::Size SAL_CALL getSize() throw(std::exception) override;
virtual Sequence< sal_Int8 > SAL_CALL getDIB() throw(std::exception) override;
virtual Sequence< sal_Int8 > SAL_CALL getMaskDIB() throw(std::exception) override { return Sequence< sal_Int8 >(); }
diff --git a/extensions/source/scanner/scanunx.cxx b/extensions/source/scanner/scanunx.cxx
index f43d2b467207..aae2b25f6e27 100644
--- a/extensions/source/scanner/scanunx.cxx
+++ b/extensions/source/scanner/scanunx.cxx
@@ -41,17 +41,6 @@ BitmapTransporter::~BitmapTransporter()
#endif
}
-
-
-Any SAL_CALL BitmapTransporter::queryInterface( const Type& rType ) throw( RuntimeException, std::exception )
-{
- const Any aRet( cppu::queryInterface( rType, static_cast< css::awt::XBitmap* >( this ) ) );
-
- return( aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ) );
-}
-
-
-
css::awt::Size BitmapTransporter::getSize() throw(std::exception)
{
osl::MutexGuard aGuard( m_aProtector );