[Libreoffice-commits] core.git: sc/source

Caolán McNamara caolanm at redhat.com
Thu Aug 29 02:32:10 PDT 2013


 sc/source/ui/app/inputhdl.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 99138b6400a4fb1216fc331b65d17419d98a4805
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Aug 29 10:30:59 2013 +0100

    GetChar->operator[]
    
    Change-Id: I5ba3cf219d61b47ff0456e26e7f04aa42010a709

diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 9fa2e0f..436991f 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++)
         {


More information about the Libreoffice-commits mailing list