diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-01 09:39:35 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-01 09:41:50 -0500 |
commit | df9ecb71c7b2622a082849b556dba5008d271b6a (patch) | |
tree | 3b111d581fdddc854ffb8b28fd86b7561ca16be2 /dtrans/source/win32/clipb/WinClipboard.cxx | |
parent | a30795ce516b273a3a56a136b9b8802a23dd632a (diff) |
targeted string re-work
Change-Id: I44518bb1b464bb0b458c0b5f1c249ef160ea3b26
Diffstat (limited to 'dtrans/source/win32/clipb/WinClipboard.cxx')
-rw-r--r-- | dtrans/source/win32/clipb/WinClipboard.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/dtrans/source/win32/clipb/WinClipboard.cxx index 30bb0e23c4b2..f77e518f1bed 100644 --- a/dtrans/source/win32/clipb/WinClipboard.cxx +++ b/dtrans/source/win32/clipb/WinClipboard.cxx @@ -66,7 +66,7 @@ namespace Sequence< OUString > SAL_CALL WinClipboard_getSupportedServiceNames() { Sequence< OUString > aRet(1); - aRet[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.datatransfer.clipboard.SystemClipboard")); + aRet[0] = OUString("com.sun.star.datatransfer.clipboard.SystemClipboard"); return aRet; } } @@ -100,7 +100,7 @@ Reference< XTransferable > SAL_CALL CWinClipboard::getContents( ) throw( Runtime MutexGuard aGuard( m_aMutex ); if ( rBHelper.bDisposed ) - throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")), + throw DisposedException( OUString("object is already disposed"), static_cast< XClipboardEx* >( this ) ); if ( NULL != m_pImpl.get( ) ) @@ -120,7 +120,7 @@ void SAL_CALL CWinClipboard::setContents( const Reference< XTransferable >& xTra MutexGuard aGuard( m_aMutex ); if ( rBHelper.bDisposed ) - throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")), + throw DisposedException( OUString("object is already disposed"), static_cast< XClipboardEx* >( this ) ); if ( NULL != m_pImpl.get( ) ) @@ -134,13 +134,13 @@ void SAL_CALL CWinClipboard::setContents( const Reference< XTransferable >& xTra OUString SAL_CALL CWinClipboard::getName( ) throw( RuntimeException ) { if ( rBHelper.bDisposed ) - throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")), + throw DisposedException( OUString("object is already disposed"), static_cast< XClipboardEx* >( this ) ); if ( NULL != m_pImpl.get( ) ) return m_pImpl->getName( ); - return OUString(RTL_CONSTASCII_USTRINGPARAM("")); + return OUString(""); } //======================================================================== @@ -152,7 +152,7 @@ void SAL_CALL CWinClipboard::flushClipboard( ) throw( RuntimeException ) MutexGuard aGuard( m_aMutex ); if ( rBHelper.bDisposed ) - throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")), + throw DisposedException( OUString("object is already disposed"), static_cast< XClipboardEx* >( this ) ); if ( NULL != m_pImpl.get( ) ) @@ -166,7 +166,7 @@ void SAL_CALL CWinClipboard::flushClipboard( ) throw( RuntimeException ) sal_Int8 SAL_CALL CWinClipboard::getRenderingCapabilities( ) throw( RuntimeException ) { if ( rBHelper.bDisposed ) - throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")), + throw DisposedException( OUString("object is already disposed"), static_cast< XClipboardEx* >( this ) ); if ( NULL != m_pImpl.get( ) ) @@ -187,12 +187,12 @@ void SAL_CALL CWinClipboard::addClipboardListener( const Reference< XClipboardLi throw( RuntimeException ) { if ( rBHelper.bDisposed ) - throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")), + throw DisposedException( OUString("object is already disposed"), static_cast< XClipboardEx* >( this ) ); // check input parameter if ( !listener.is( ) ) - throw IllegalArgumentException( OUString(RTL_CONSTASCII_USTRINGPARAM("empty reference")), + throw IllegalArgumentException( OUString("empty reference"), static_cast< XClipboardEx* >( this ), 1 ); @@ -207,12 +207,12 @@ void SAL_CALL CWinClipboard::removeClipboardListener( const Reference< XClipboar throw( RuntimeException ) { if ( rBHelper.bDisposed ) - throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")), + throw DisposedException( OUString("object is already disposed"), static_cast< XClipboardEx* >( this ) ); // check input parameter if ( !listener.is( ) ) - throw IllegalArgumentException( OUString(RTL_CONSTASCII_USTRINGPARAM("empty reference")), + throw IllegalArgumentException( OUString("empty reference"), static_cast< XClipboardEx* >( this ), 1 ); @@ -291,7 +291,7 @@ void SAL_CALL CWinClipboard::disposing() OUString SAL_CALL CWinClipboard::getImplementationName( ) throw(RuntimeException) { - return OUString(RTL_CONSTASCII_USTRINGPARAM( WINCLIPBOARD_IMPL_NAME )); + return OUString( WINCLIPBOARD_IMPL_NAME ); } // ------------------------------------------------- |