diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-06-15 00:50:57 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-06-20 10:54:38 +0000 |
commit | fb784cf569ad2a27d844d7c52f8a804aa2f8deaa (patch) | |
tree | 7d8251ff1869deeef28057733de3f6d25f29ae82 /unotools | |
parent | 149edab4435256b13a8681ac69bd4c35f6da8bb7 (diff) |
Mark these functions as final
Comment from Michael Stahl in Gerrit:
"to prevent potential disasters if somebody adds
a sub-class and overrides ImplCommit,
which is then not called here."
Change-Id: I2d991c713734fd516827a5dd6c8929aa64e59409
Reviewed-on: https://gerrit.libreoffice.org/26278
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/defaultoptions.cxx | 2 | ||||
-rw-r--r-- | unotools/source/config/misccfg.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/config/defaultoptions.cxx b/unotools/source/config/defaultoptions.cxx index 0bcba50716bd..5d0ad67aef8f 100644 --- a/unotools/source/config/defaultoptions.cxx +++ b/unotools/source/config/defaultoptions.cxx @@ -99,7 +99,7 @@ public: virtual void Notify( const css::uno::Sequence<OUString>& aPropertyNames) override; private: - virtual void ImplCommit() override; + virtual void ImplCommit() final override; }; // global ---------------------------------------------------------------- diff --git a/unotools/source/config/misccfg.cxx b/unotools/source/config/misccfg.cxx index d50542c2fe69..afb59da178a4 100644 --- a/unotools/source/config/misccfg.cxx +++ b/unotools/source/config/misccfg.cxx @@ -46,7 +46,7 @@ private: static const css::uno::Sequence<OUString> GetPropertyNames(); void Load(); - virtual void ImplCommit() override; + virtual void ImplCommit() final override; public: SfxMiscCfg( ); |