diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-16 10:11:04 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-18 10:03:44 +0000 |
commit | 2c8fe2e737b84ecd3dbac36a4fe6bd061bbd3bae (patch) | |
tree | 66ba7ff0b95cf5ceeda5e53294a71c6786460eb3 /formula | |
parent | 4e59eecc077d27dd9762e7c890b2aaf92a212959 (diff) |
update unusedmethods plugin to deal with constructors
and fix the operator< implementations in some of the other
plugins too.
Change-Id: Ie5631e0cdc8d2a994ad2af2533cdb558a6cfc035
Reviewed-on: https://gerrit.libreoffice.org/25057
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/token.cxx | 17 | ||||
-rw-r--r-- | formula/source/core/inc/core_resource.hxx | 2 |
2 files changed, 1 insertions, 18 deletions
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx index caa60fd924ff..8cbceb3e5e8d 100644 --- a/formula/source/core/api/token.cxx +++ b/formula/source/core/api/token.cxx @@ -1758,23 +1758,6 @@ bool FormulaMissingToken::operator==( const FormulaToken& r ) const } -FormulaSubroutineToken::FormulaSubroutineToken( const FormulaSubroutineToken& r ) : - FormulaToken( r ), - mpArray( r.mpArray->Clone()) -{ -} -FormulaSubroutineToken::~FormulaSubroutineToken() -{ - delete mpArray; -} -bool FormulaSubroutineToken::operator==( const FormulaToken& r ) const -{ - // Arrays don't equal.. - return FormulaToken::operator==( r ) && - (mpArray == static_cast<const FormulaSubroutineToken&>(r).mpArray); -} - - bool FormulaUnknownToken::operator==( const FormulaToken& r ) const { return FormulaToken::operator==( r ); diff --git a/formula/source/core/inc/core_resource.hxx b/formula/source/core/inc/core_resource.hxx index 5c9d4991b1dd..fbd6aa389657 100644 --- a/formula/source/core/inc/core_resource.hxx +++ b/formula/source/core/inc/core_resource.hxx @@ -39,7 +39,7 @@ namespace formula private: // no instantiation allowed - ResourceManager() { } + ResourceManager() = delete; ~ResourceManager() { } protected: |