diff options
Diffstat (limited to 'vcl/generic/fontmanager/fontcache.cxx')
-rw-r--r-- | vcl/generic/fontmanager/fontcache.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/generic/fontmanager/fontcache.cxx b/vcl/generic/fontmanager/fontcache.cxx index b2a2af528af6..0d14d48c58a3 100644 --- a/vcl/generic/fontmanager/fontcache.cxx +++ b/vcl/generic/fontmanager/fontcache.cxx @@ -264,10 +264,10 @@ void FontCache::read() do { aStream.ReadLine( aLine ); - if( aLine.compareTo( "FontCacheDirectory:" ) == 0 || - aLine.compareTo( "EmptyFontCacheDirectory:" ) == 0 ) + if( aLine == "FontCacheDirectory:" || + aLine == "EmptyFontCacheDirectory:" ) { - bool bEmpty = (aLine.compareTo( "Empty" ) == 0); + bool bEmpty = (aLine == "Empty" ); sal_Int32 nSearchIndex = bEmpty ? 24 : 19; OString aDir; @@ -309,7 +309,7 @@ void FontCache::read() m_aCache[ nDir ].m_bUserOverrideOnly = bKeepOnlyUserOverridden; } } - else if( pDir && aLine.compareTo( "File:" ) == 0 ) + else if( pDir && aLine == "File:") { OString aFile( aLine.copy( 5 ) ); aStream.ReadLine( aLine ); |