summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-09-11 13:55:05 +0200
committerNoel Grandin <noel@peralex.com>2013-09-17 08:04:41 +0200
commitf733ca910026daa2232f2e2de3394bd36134dd78 (patch)
tree35103115cb557912882c5cfd49139e28eb2b924b /sc
parentf32da852f535bdaa04617da4ec56a923b530c344 (diff)
convert include/formula/formula.hxx from String to OUString
Change-Id: Id3c1dfa97805dfa3a1978cd264380d5ef4a2287a
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/formdlg/formula.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx
index a907e0cf232b..6508fa90acd8 100644
--- a/sc/source/ui/formdlg/formula.cxx
+++ b/sc/source/ui/formdlg/formula.cxx
@@ -142,9 +142,9 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW,
// Formel vorhanden? Dann editieren
- String aFormula;
+ OUString aFormula;
pDoc->GetFormula( nCol, nRow, nTab, aFormula );
- sal_Bool bEdit = ( aFormula.Len() > 1 );
+ sal_Bool bEdit = ( aFormula.getLength() > 1 );
sal_Bool bMatrix = false;
if ( bEdit )
{
@@ -169,7 +169,7 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW,
if ( !bEdit )
{
OUString aNewFormula('=');
- if ( aFormula.Len() > 0 && aFormula.GetChar(0) == '=' )
+ if ( !aFormula.isEmpty() && aFormula[0] == '=' )
aNewFormula = aFormula;
pScMod->InputReplaceSelection( aNewFormula );