[Libreoffice-commits] core.git: cppuhelper/qa

Stephan Bergmann sbergman at redhat.com
Fri Nov 20 00:11:36 PST 2015


 cppuhelper/qa/weak/test_weak.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit d4857e30b1defde21895ece6b29c8c9829168a50
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Nov 20 09:11:00 2015 +0100

    loplugin:override
    
    Change-Id: Ic89d255bf56234a82b23ad6cc36d8d1250acbcab

diff --git a/cppuhelper/qa/weak/test_weak.cxx b/cppuhelper/qa/weak/test_weak.cxx
index a660557..84c980e 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();
     }
 };


More information about the Libreoffice-commits mailing list