diff options
Diffstat (limited to 'i18nutil/source/utility/widthfolding.cxx')
-rw-r--r-- | i18nutil/source/utility/widthfolding.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/i18nutil/source/utility/widthfolding.cxx b/i18nutil/source/utility/widthfolding.cxx index 2d3fcb1a93c9..a47152333eda 100644 --- a/i18nutil/source/utility/widthfolding.cxx +++ b/i18nutil/source/utility/widthfolding.cxx @@ -222,12 +222,12 @@ oneToOneMapping& widthfolding::getfull2halfTableForASC() // // See the following page for detail: // http://wiki.openoffice.org/wiki/Calc/Features/JIS_and_ASC_functions - int i, j, high, low; + int i, j; int n = sizeof(full2halfASCException) / sizeof(UnicodePairWithFlag); for( i = 0; i < n; i++ ) { - high = (full2halfASCException[i].first >> 8) & 0xFF; - low = (full2halfASCException[i].first) & 0xFF; + const int high = (full2halfASCException[i].first >> 8) & 0xFF; + const int low = (full2halfASCException[i].first) & 0xFF; if( !table.mpIndex[high] ) { @@ -256,12 +256,12 @@ oneToOneMapping& widthfolding::gethalf2fullTableForJIS() // // See the following page for detail: // http://wiki.openoffice.org/wiki/Calc/Features/JIS_and_ASC_functions - int i, j, high, low; + int i, j; int n = sizeof(half2fullJISException) / sizeof(UnicodePairWithFlag); for( i = 0; i < n; i++ ) { - high = (half2fullJISException[i].first >> 8) & 0xFF; - low = (half2fullJISException[i].first) & 0xFF; + const int high = (half2fullJISException[i].first >> 8) & 0xFF; + const int low = (half2fullJISException[i].first) & 0xFF; if( !table.mpIndex[high] ) { |