diff options
Diffstat (limited to 'dtrans/source/generic')
-rw-r--r-- | dtrans/source/generic/clipboardmanager.cxx | 4 | ||||
-rw-r--r-- | dtrans/source/generic/generic_clipboard.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dtrans/source/generic/clipboardmanager.cxx b/dtrans/source/generic/clipboardmanager.cxx index be78cdf03b9b..7793826bb0bc 100644 --- a/dtrans/source/generic/clipboardmanager.cxx +++ b/dtrans/source/generic/clipboardmanager.cxx @@ -62,7 +62,7 @@ sal_Bool SAL_CALL ClipboardManager::supportsService( const OUString& ServiceName Sequence < OUString > SupportedServicesNames = ClipboardManager_getSupportedServiceNames(); for ( sal_Int32 n = 0, nmax = SupportedServicesNames.getLength(); n < nmax; n++ ) - if (SupportedServicesNames[n].compareTo(ServiceName) == 0) + if ( SupportedServicesNames[n] == ServiceName ) return sal_True; return sal_False; @@ -111,7 +111,7 @@ void SAL_CALL ClipboardManager::addClipboard( const Reference< XClipboard >& xCl // the name "default" is reserved for internal use OUString aName = xClipboard->getName(); - if (m_aDefaultName.compareTo(aName) == 0) + if ( m_aDefaultName == aName ) throw IllegalArgumentException(OUString("name reserved"), static_cast < XClipboardManager * > (this), 1); diff --git a/dtrans/source/generic/generic_clipboard.cxx b/dtrans/source/generic/generic_clipboard.cxx index 4da2b1bfa07e..88621630ccc2 100644 --- a/dtrans/source/generic/generic_clipboard.cxx +++ b/dtrans/source/generic/generic_clipboard.cxx @@ -75,7 +75,7 @@ sal_Bool SAL_CALL GenericClipboard::supportsService( const OUString& ServiceName Sequence < OUString > SupportedServicesNames = GenericClipboard_getSupportedServiceNames(); for ( sal_Int32 n = SupportedServicesNames.getLength(); n--; ) - if (SupportedServicesNames[n].compareTo(ServiceName) == 0) + if ( SupportedServicesNames[n] == ServiceName ) return sal_True; return sal_False; |