diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-17 13:14:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-23 08:08:56 +0200 |
commit | c45d3badc96481db093560b94d8bf51ead6bd17c (patch) | |
tree | 4bb6c9220678a12b327e46ca2acd01e77fc8e2c4 /formula | |
parent | 003d0ccf902d2449320dd24119564565a384f365 (diff) |
new loplugin: commaoperator
Change-Id: I03f24e61f696b7619855e3c7010aa0d874e5a4ff
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 3 | ||||
-rw-r--r-- | formula/source/ui/dlg/FormulaHelper.cxx | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index a17d9eee570f..6b0eb35b0c45 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1732,7 +1732,8 @@ bool FormulaCompiler::MergeRangeReference( FormulaToken * * const pCode1, Formul p1->DecRef(); p2->DecRef(); *pCode1 = p.get(); - --pCode, --pc; + --pCode; + --pc; return true; } diff --git a/formula/source/ui/dlg/FormulaHelper.cxx b/formula/source/ui/dlg/FormulaHelper.cxx index 7e1e8e838dfb..73a5dd695292 100644 --- a/formula/source/ui/dlg/FormulaHelper.cxx +++ b/formula/source/ui/dlg/FormulaHelper.cxx @@ -146,7 +146,10 @@ void FormulaHelper::FillArgStrings( const OUString& rFormula, if ( nEnd != nStart ) _rArgs.push_back(rFormula.copy( nStart, nEnd-1-nStart )); else - _rArgs.push_back(OUString()), bLast = true; + { + _rArgs.push_back(OUString()); + bLast = true; + } } else { |