diff options
author | Eike Rathke <erack@redhat.com> | 2016-07-25 17:23:10 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-07-25 17:25:43 +0200 |
commit | 1839bc8cf4148ae9d5455794ba286ebded54b5c7 (patch) | |
tree | 7ea6e8a803ef3359c869039e05e52ef50b928619 /svl | |
parent | 5b5f66c672849bbdc3b31cea678cdaa83295ce9b (diff) |
obtain PreviousChar() only if necessary
Change-Id: Ib23b34fd927eaecef1868fbeebde0a28399dc0c3
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforscan.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx index 000755a761f6..33eda8f4db27 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 |