diff options
author | Artur Dryomov <artur.dryomov@gmail.com> | 2013-04-16 19:33:24 +0300 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-04-17 10:01:35 +0000 |
commit | b80d8c695e6b6ded231e67ed9a80bcd1f1250c03 (patch) | |
tree | fbd2686e52603d484b12a836db2f8fb33ff79c32 /vcl | |
parent | c75eeddfb892918c13a19f7c534b73e423ff8d89 (diff) |
fdo#62096 - replace some O(U)String compareTo with ==
Change-Id: I98d04d7da4c2b7ea0b769df9c2bfa8c1ad86bf2d
Reviewed-on: https://gerrit.libreoffice.org/3422
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/fontmanager/fontcache.cxx | 8 | ||||
-rw-r--r-- | vcl/unx/generic/dtrans/X11_clipboard.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/dtrans/X11_droptarget.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/dtrans/X11_selection.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/kde/UnxFilePicker.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/kde4/KDE4FilePicker.cxx | 2 |
6 files changed, 9 insertions, 9 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 ); diff --git a/vcl/unx/generic/dtrans/X11_clipboard.cxx b/vcl/unx/generic/dtrans/X11_clipboard.cxx index 82f1ce9ee34c..6325e19e7f1e 100644 --- a/vcl/unx/generic/dtrans/X11_clipboard.cxx +++ b/vcl/unx/generic/dtrans/X11_clipboard.cxx @@ -259,7 +259,7 @@ sal_Bool SAL_CALL X11Clipboard::supportsService( const OUString& ServiceName ) Sequence < OUString > SupportedServicesNames = X11Clipboard_getSupportedServiceNames(); for ( sal_Int32 n = SupportedServicesNames.getLength(); n--; ) - if (SupportedServicesNames[n].compareTo(ServiceName) == 0) + if (SupportedServicesNames[n] == ServiceName) return sal_True; return sal_False; diff --git a/vcl/unx/generic/dtrans/X11_droptarget.cxx b/vcl/unx/generic/dtrans/X11_droptarget.cxx index f262003e10f9..b2e76aa63285 100644 --- a/vcl/unx/generic/dtrans/X11_droptarget.cxx +++ b/vcl/unx/generic/dtrans/X11_droptarget.cxx @@ -202,7 +202,7 @@ sal_Bool DropTarget::supportsService( const OUString& ServiceName ) throw() Sequence < OUString > SupportedServicesNames = Xdnd_dropTarget_getSupportedServiceNames(); for ( sal_Int32 n = SupportedServicesNames.getLength(); n--; ) - if (SupportedServicesNames[n].compareTo(ServiceName) == 0) + if (SupportedServicesNames[n] == ServiceName) return sal_True; return sal_False; diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx index db951bb7d0aa..5b79345d41cd 100644 --- a/vcl/unx/generic/dtrans/X11_selection.cxx +++ b/vcl/unx/generic/dtrans/X11_selection.cxx @@ -4151,7 +4151,7 @@ sal_Bool SelectionManagerHolder::supportsService( const OUString& ServiceName ) Sequence < OUString > SupportedServicesNames = Xdnd_getSupportedServiceNames(); for ( sal_Int32 n = SupportedServicesNames.getLength(); n--; ) - if (SupportedServicesNames[n].compareTo(ServiceName) == 0) + if (SupportedServicesNames[n] == ServiceName) return sal_True; return sal_False; diff --git a/vcl/unx/kde/UnxFilePicker.cxx b/vcl/unx/kde/UnxFilePicker.cxx index 5ccc84251544..706d0957ed49 100644 --- a/vcl/unx/kde/UnxFilePicker.cxx +++ b/vcl/unx/kde/UnxFilePicker.cxx @@ -660,7 +660,7 @@ sal_Bool SAL_CALL UnxFilePicker::supportsService( const OUString& ServiceName ) for ( sal_Int32 n = SupportedServicesNames.getLength(); n--; ) { - if ( SupportedServicesNames[n].compareTo( ServiceName ) == 0 ) + if ( SupportedServicesNames[n] == ServiceName ) return sal_True; } diff --git a/vcl/unx/kde4/KDE4FilePicker.cxx b/vcl/unx/kde4/KDE4FilePicker.cxx index d2731b095168..4e3d840bb1ea 100644 --- a/vcl/unx/kde4/KDE4FilePicker.cxx +++ b/vcl/unx/kde4/KDE4FilePicker.cxx @@ -712,7 +712,7 @@ sal_Bool SAL_CALL KDE4FilePicker::supportsService( const OUString& ServiceName ) for ( sal_Int32 n = SupportedServicesNames.getLength(); n--; ) { - if ( SupportedServicesNames[n].compareTo( ServiceName ) == 0 ) + if ( SupportedServicesNames[n] == ServiceName ) return sal_True; } |