From b44cbb26efe1d0b0950b1e1613e131b506dc3876 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 20 Jan 2015 12:38:10 +0200 Subject: new loplugin: change virtual methods to non-virtual Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae --- include/framework/preventduplicateinteraction.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/framework') diff --git a/include/framework/preventduplicateinteraction.hxx b/include/framework/preventduplicateinteraction.hxx index 1a15c3e3af65..bfc9ff6f9102 100644 --- a/include/framework/preventduplicateinteraction.hxx +++ b/include/framework/preventduplicateinteraction.hxx @@ -181,7 +181,7 @@ class FWE_DLLPUBLIC PreventDuplicateInteraction : private ThreadHelpBase2 @param xHandler the new interaction handler */ - virtual void setHandler(const css::uno::Reference< css::task::XInteractionHandler >& xHandler); + void setHandler(const css::uno::Reference< css::task::XInteractionHandler >& xHandler); /** @@ -190,7 +190,7 @@ class FWE_DLLPUBLIC PreventDuplicateInteraction : private ThreadHelpBase2 @note This overwrites the settings of e.g. setHandler()! */ - virtual void useDefaultUUIHandler(); + void useDefaultUUIHandler(); /** @@ -208,7 +208,7 @@ class FWE_DLLPUBLIC PreventDuplicateInteraction : private ThreadHelpBase2 @threadsafe yes */ - virtual void addInteractionRule(const PreventDuplicateInteraction::InteractionInfo& aInteractionInfo); + void addInteractionRule(const PreventDuplicateInteraction::InteractionInfo& aInteractionInfo); /** @@ -229,7 +229,7 @@ class FWE_DLLPUBLIC PreventDuplicateInteraction : private ThreadHelpBase2 @threadsafe yes */ - virtual bool getInteractionInfo(const css::uno::Type& aInteraction, + bool getInteractionInfo(const css::uno::Type& aInteraction, PreventDuplicateInteraction::InteractionInfo* pReturn ) const; }; -- cgit