diff options
-rw-r--r-- | cppuhelper/qa/weak/test_weak.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cppuhelper/qa/weak/test_weak.cxx b/cppuhelper/qa/weak/test_weak.cxx index a6605579099b..84c980efb2b5 100644 --- a/cppuhelper/qa/weak/test_weak.cxx +++ b/cppuhelper/qa/weak/test_weak.cxx @@ -38,7 +38,7 @@ class Reference: public cppu::WeakImplHelper1< css::uno::XReference > { public: Reference(): m_disposed(false) {} - virtual void SAL_CALL dispose() throw (css::uno::RuntimeException) { + void SAL_CALL dispose() throw (css::uno::RuntimeException) override { m_disposed = true; handleDispose(); } @@ -54,14 +54,14 @@ private: class RuntimeExceptionReference: public Reference { protected: - virtual void handleDispose() { + void handleDispose() override { throw css::uno::RuntimeException(); } }; class DisposedExceptionReference: public Reference { protected: - virtual void handleDispose() { + void handleDispose() override { throw css::lang::DisposedException(); } }; |