diff options
author | Eike Rathke <erack@redhat.com> | 2015-01-23 14:28:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-23 15:27:07 +0000 |
commit | 384b4331e6962553e682fda7257ccc3d54549bea (patch) | |
tree | 4730f81d985a09031e7223aa4e2141a4e7184d13 /sc | |
parent | 366add0ee3cb0a41181332d5d59c742282b23d09 (diff) |
fix abuse of OUStringBuffer(int) ctor
Partial backport of 853c2fc71a96755a9dee629fd5d0e1cff9a48034
Change-Id: I14e26da332a829c6381ee9e07571171ebebe0ac0
Reviewed-on: https://gerrit.libreoffice.org/14132
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/documen4.cxx | 3 | ||||
-rw-r--r-- | sc/source/core/data/documentimport.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx index 2ab0088caeb5..1f047d5733f4 100644 --- a/sc/source/core/data/documen4.cxx +++ b/sc/source/core/data/documen4.cxx @@ -374,7 +374,8 @@ void ScDocument::InsertTableOp(const ScTabOpParam& rParam, // multiple (repeate } ScRefAddress aRef; - OUStringBuffer aForString('='); + OUStringBuffer aForString; + aForString.append('='); aForString.append(ScCompiler::GetNativeSymbol(ocTableOp)); aForString.append(ScCompiler::GetNativeSymbol( ocOpen)); diff --git a/sc/source/core/data/documentimport.cxx b/sc/source/core/data/documentimport.cxx index 48878f59eb84..4191642a44c4 100644 --- a/sc/source/core/data/documentimport.cxx +++ b/sc/source/core/data/documentimport.cxx @@ -375,7 +375,8 @@ void ScDocumentImport::setTableOpCells(const ScRange& rRange, const ScTabOpParam ScDocument* pDoc = &mpImpl->mrDoc; ScRefAddress aRef; - OUStringBuffer aFormulaBuf('='); + OUStringBuffer aFormulaBuf; + aFormulaBuf.append('='); aFormulaBuf.append(ScCompiler::GetNativeSymbol(ocTableOp)); aFormulaBuf.append(ScCompiler::GetNativeSymbol(ocOpen)); |