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

Eike Rathke erack at redhat.com
Mon Jul 25 15:26:14 UTC 2016


 svl/source/numbers/zforscan.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 1839bc8cf4148ae9d5455794ba286ebded54b5c7
Author: Eike Rathke <erack at redhat.com>
Date:   Mon Jul 25 17:23:10 2016 +0200

    obtain PreviousChar() only if necessary
    
    Change-Id: Ib23b34fd927eaecef1868fbeebde0a28399dc0c3

diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx
index 000755a..33eda8f 100644
--- a/svl/source/numbers/zforscan.cxx
+++ b/svl/source/numbers/zforscan.cxx
@@ -1129,7 +1129,6 @@ sal_Int32 ImpSvNumberformatScan::ScanType()
         {   // keyword
             sal_uInt16 nIndexPre;
             sal_uInt16 nIndexNex;
-            sal_Unicode cChar;
 
             switch (nTypeArray[i])
             {
@@ -1155,14 +1154,13 @@ sal_Int32 ImpSvNumberformatScan::ScanType()
                 */
                 nIndexPre = PreviousKeyword(i);
                 nIndexNex = NextKeyword(i);
-                cChar = PreviousChar(i);
                 if (nIndexPre == NF_KEY_H   ||      // H
                     nIndexPre == NF_KEY_HH  ||      // HH
                     nIndexPre == NF_KEY_S   ||      // S before M tdf#95339
                     nIndexPre == NF_KEY_SS  ||      // SS
                     nIndexNex == NF_KEY_S   ||      // S
                     nIndexNex == NF_KEY_SS  ||      // SS
-                    cChar == '['  )                 // [M
+                    PreviousChar(i) == '['  )       // [M
                 {
                     eNewType = css::util::NumberFormat::TIME;
                     nTypeArray[i] -= 2;             // 6 -> 4, 7 -> 5


More information about the Libreoffice-commits mailing list