summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-08-29 10:30:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-08-29 10:31:30 +0100
commit99138b6400a4fb1216fc331b65d17419d98a4805 (patch)
treee45dd8440cecbc0f9368b5fe84f07d27f8e6ec91 /sc
parent5c4b5c26b099c0655983841051b475ffa06c1e37 (diff)
GetChar->operator[]
Change-Id: I5ba3cf219d61b47ff0456e26e7f04aa42010a709
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/app/inputhdl.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 9fa2e0f2161d..436991f49cc0 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -2251,9 +2251,9 @@ void ScInputHandler::UpdateFormulaMode()
SfxApplication* pSfxApp = SFX_APP();
if ( pEngine->GetParagraphCount() == 1 &&
- ( pEngine->GetText(0).GetChar(0) == '=' ||
- pEngine->GetText(0).GetChar(0) == '+' ||
- pEngine->GetText(0).GetChar(0) == '-' ) &&
+ ( pEngine->GetText(0)[0] == '=' ||
+ pEngine->GetText(0)[0] == '+' ||
+ pEngine->GetText(0)[0] == '-' ) &&
!bProtected )
{
if (!bFormulaMode)
@@ -2408,9 +2408,9 @@ void ScInputHandler::SetMode( ScInputMode eNewMode )
}
}
- sal_Int32 nPara = pEngine->GetParagraphCount()-1;
- xub_StrLen nLen = pEngine->GetText(nPara).Len();
- sal_uInt16 nCount = pEngine->GetViewCount();
+ sal_Int32 nPara = pEngine->GetParagraphCount()-1;
+ sal_Int32 nLen = pEngine->GetText(nPara).getLength();
+ sal_uInt16 nCount = pEngine->GetViewCount();
for (sal_uInt16 i=0; i<nCount; i++)
{