diff options
author | Eike Rathke <er@openoffice.org> | 2001-08-06 09:04:15 +0000 |
---|---|---|
committer | Eike Rathke <er@openoffice.org> | 2001-08-06 09:04:15 +0000 |
commit | cf839d30136ddcec558083c04f7bcf3f491ceb20 (patch) | |
tree | 53f7cfe0b90f87f37e53c4ae9bdf2168a6dbe892 /svtools/source/numbers/zforlist.cxx | |
parent | 6a223fe7cb7de2c9f0ce9f24d5a6c16a44a6a263 (diff) |
#90249# performance: transliteration isEqual()/isMatch() instead of compareString()==0
Diffstat (limited to 'svtools/source/numbers/zforlist.cxx')
-rw-r--r-- | svtools/source/numbers/zforlist.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/numbers/zforlist.cxx b/svtools/source/numbers/zforlist.cxx index c93b2b5846..a23ec5a838 100644 --- a/svtools/source/numbers/zforlist.cxx +++ b/svtools/source/numbers/zforlist.cxx @@ -2,9 +2,9 @@ * * $RCSfile: zforlist.cxx,v $ * - * $Revision: 1.39 $ + * $Revision: 1.40 $ * - * last change: $Author: er $ $Date: 2001-08-02 14:53:08 $ + * last change: $Author: er $ $Date: 2001-08-06 10:04:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1633,8 +1633,8 @@ BOOL SvNumberFormatter::GetPreviewStringGuess( const String& sFormatString, if ( !bEnglishFormat ) { - if ( nCheckPos > 0 || xTransliteration->compareString( sFormatString, - pEntry->GetFormatstring() ) == 0 ) + if ( nCheckPos > 0 || xTransliteration->isEqual( sFormatString, + pEntry->GetFormatstring() ) ) { // other Format delete pEntry; sTmpString = sFormatString; @@ -1652,8 +1652,8 @@ BOOL SvNumberFormatter::GetPreviewStringGuess( const String& sFormatString, pStringScanner, nCheckPos2, eFormatLang ); pFormatScanner->SetConvertMode( FALSE ); ChangeIntl( eLnge ); - if ( nCheckPos2 == 0 && xTransliteration->compareString( sFormatString, - pEntry2->GetFormatstring() ) != 0 ) + if ( nCheckPos2 == 0 && !xTransliteration->isEqual( sFormatString, + pEntry2->GetFormatstring() ) ) { // other Format delete pEntry; sTmpString = sFormatString; |