diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-15 15:54:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-17 10:49:28 +0200 |
commit | f7df7a6efcc6fe31915e031e6dbab0ad8633ac48 (patch) | |
tree | 433a6e050e4ae80b91829acdc84113cb8f29729d /sc/source/core/tool/formulalogger.cxx | |
parent | 5774c6f4bb365a690049713307481d9a63aa20a6 (diff) |
TokenStringContext never called with a null ScDocument*
so we can drop the nullptr check
Change-Id: I588619f3e6f701a003447c59f5c0530801b5e1ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102886
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/core/tool/formulalogger.cxx')
-rw-r--r-- | sc/source/core/tool/formulalogger.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/formulalogger.cxx b/sc/source/core/tool/formulalogger.cxx index 3f600cdb9743..f32017b4d4c3 100644 --- a/sc/source/core/tool/formulalogger.cxx +++ b/sc/source/core/tool/formulalogger.cxx @@ -78,7 +78,7 @@ struct FormulaLogger::GroupScope::Impl if (!mbOutputEnabled) return; - sc::TokenStringContext aCxt(&rDoc, rDoc.GetGrammar()); + sc::TokenStringContext aCxt(rDoc, rDoc.GetGrammar()); OUString aFormula = rCell.GetCode()->CreateString(aCxt, rCell.aPos); mrLogger.write(maPrefix); |