diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-08-04 15:53:22 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-08-05 18:27:51 +0000 |
commit | dc72abc793baa57199a5674c066df5ec024d1771 (patch) | |
tree | 513b79379ab044214bc2fdc9d0bdae98aca232ba /scaddins | |
parent | 5693ee7a41fbe4de337cef3b10294edd670be804 (diff) |
no need to check for nullptr before deleting
Change-Id: I5512ad52c9a0f943b29656e16cceeb08ce164abf
Reviewed-on: https://gerrit.libreoffice.org/27888
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysis.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx index a8d9be1cb194..eb53f0efca0b 100644 --- a/scaddins/source/analysis/analysis.cxx +++ b/scaddins/source/analysis/analysis.cxx @@ -138,11 +138,8 @@ void AnalysisAddIn::InitData() pFD = nullptr; } - if( pDefLocales ) - { - delete pDefLocales; - pDefLocales = nullptr; - } + delete pDefLocales; + pDefLocales = nullptr; } AnalysisAddIn::AnalysisAddIn( const uno::Reference< uno::XComponentContext >& xContext ) : |