diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-22 10:04:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-28 12:56:17 +0000 |
commit | 8a22bc93e0988188a87c0a787a9b32a7f74da84d (patch) | |
tree | 5b0c9bd79ee88be0754687fe552729e8470f5db2 /scaddins | |
parent | tdf#89329: use unique_ptr for pImpl in fpicker/ (diff) | |
download | core-8a22bc93e0988188a87c0a787a9b32a7f74da84d.tar.gz core-8a22bc93e0988188a87c0a787a9b32a7f74da84d.zip |
update unnecessaryoverride plugin to find pure forwarding methods
which can be replaced with using declarations.
Is there a more efficient way to code the search? Seems to slow the
build down a little.
Change-Id: I08cda21fa70dce6572e1acc71bf5e6df36bb951f
Reviewed-on: https://gerrit.libreoffice.org/30157
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysis.cxx | 4 | ||||
-rw-r--r-- | scaddins/source/datefunc/datefunc.hxx | 6 | ||||
-rw-r--r-- | scaddins/source/pricing/pricing.hxx | 6 |
3 files changed, 6 insertions, 10 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx index 04bfbbd8cc63..4b000b5943fe 100644 --- a/scaddins/source/analysis/analysis.cxx +++ b/scaddins/source/analysis/analysis.cxx @@ -83,8 +83,8 @@ class AnalysisResourcePublisher : public Resource { public: explicit AnalysisResourcePublisher( const AnalysisResId& rId ) : Resource( rId ) {} - bool IsAvailableRes( const ResId& rId ) const { return Resource::IsAvailableRes( rId ); } - void FreeResource() { Resource::FreeResource(); } + using Resource::IsAvailableRes; + using Resource::FreeResource; }; class AnalysisFuncRes : public Resource diff --git a/scaddins/source/datefunc/datefunc.hxx b/scaddins/source/datefunc/datefunc.hxx index f9876afd3fe5..de1a0b4543d0 100644 --- a/scaddins/source/datefunc/datefunc.hxx +++ b/scaddins/source/datefunc/datefunc.hxx @@ -90,10 +90,8 @@ class ScaResPublisher : public Resource public: explicit ScaResPublisher( const ScaResId& rResId ) : Resource( rResId ) {} - bool IsAvailableRes( const ResId& rResId ) const - { return Resource::IsAvailableRes( rResId ); } - void FreeResource() - { Resource::FreeResource(); } + using Resource::IsAvailableRes; + using Resource::FreeResource; }; diff --git a/scaddins/source/pricing/pricing.hxx b/scaddins/source/pricing/pricing.hxx index 379430013e14..97da8cc747a1 100644 --- a/scaddins/source/pricing/pricing.hxx +++ b/scaddins/source/pricing/pricing.hxx @@ -99,10 +99,8 @@ class ScaResPublisher : public Resource public: explicit ScaResPublisher( const ScaResId& rResId ) : Resource( rResId ) {} - bool IsAvailableRes( const ResId& rResId ) const - { return Resource::IsAvailableRes( rResId ); } - void FreeResource() - { Resource::FreeResource(); } + using Resource::IsAvailableRes; + using Resource::FreeResource; }; |