diff options
Diffstat (limited to 'tools/source/fsys/wldcrd.cxx')
-rw-r--r-- | tools/source/fsys/wldcrd.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/source/fsys/wldcrd.cxx b/tools/source/fsys/wldcrd.cxx index 293d16877498..16c71cbc51d5 100644 --- a/tools/source/fsys/wldcrd.cxx +++ b/tools/source/fsys/wldcrd.cxx @@ -48,7 +48,7 @@ * */ -USHORT WildCard::ImpMatch( const char *pWild, const char *pStr ) const +sal_uInt16 WildCard::ImpMatch( const char *pWild, const char *pStr ) const { int pos=0; int flag=0; @@ -117,12 +117,12 @@ USHORT WildCard::ImpMatch( const char *pWild, const char *pStr ) const |* *************************************************************************/ -BOOL WildCard::Matches( const String& rString ) const +sal_Bool WildCard::Matches( const String& rString ) const { ByteString aTmpWild = aWildString; ByteString aString(rString, osl_getThreadTextEncoding()); - USHORT nSepPos; + sal_uInt16 nSepPos; if ( cSepSymbol != '\0' ) { @@ -130,14 +130,14 @@ BOOL WildCard::Matches( const String& rString ) const { // alle getrennten WildCard's pruefen if ( ImpMatch( aTmpWild.Copy( 0, nSepPos ).GetBuffer(), aString.GetBuffer() ) ) - return TRUE; + return sal_True; aTmpWild.Erase( 0, nSepPos + 1 ); // Trennsymbol entfernen } // und noch den hinter dem letzen Trennsymbol bzw. den einzigen } if ( ImpMatch( aTmpWild.GetBuffer(), aString.GetBuffer() ) ) - return TRUE; + return sal_True; else - return FALSE; + return sal_False; } |