diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-29 10:30:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-29 10:31:30 +0100 |
commit | 99138b6400a4fb1216fc331b65d17419d98a4805 (patch) | |
tree | e45dd8440cecbc0f9368b5fe84f07d27f8e6ec91 /sc | |
parent | 5c4b5c26b099c0655983841051b475ffa06c1e37 (diff) |
GetChar->operator[]
Change-Id: I5ba3cf219d61b47ff0456e26e7f04aa42010a709
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 12 |
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++) { |