summaryrefslogtreecommitdiff
path: root/dtrans/source/win32/clipb/WinClipboard.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dtrans/source/win32/clipb/WinClipboard.cxx')
-rw-r--r--dtrans/source/win32/clipb/WinClipboard.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/dtrans/source/win32/clipb/WinClipboard.cxx
index 8439040a6337..48f60629905a 100644
--- a/dtrans/source/win32/clipb/WinClipboard.cxx
+++ b/dtrans/source/win32/clipb/WinClipboard.cxx
@@ -68,7 +68,7 @@ namespace
Sequence< OUString > SAL_CALL WinClipboard_getSupportedServiceNames()
{
Sequence< OUString > aRet(1);
- aRet[0] = OUString::createFromAscii("com.sun.star.datatransfer.clipboard.SystemClipboard");
+ aRet[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.datatransfer.clipboard.SystemClipboard"));
return aRet;
}
}
@@ -102,7 +102,7 @@ Reference< XTransferable > SAL_CALL CWinClipboard::getContents( ) throw( Runtime
MutexGuard aGuard( m_aMutex );
if ( rBHelper.bDisposed )
- throw DisposedException( OUString::createFromAscii( "object is already disposed" ),
+ throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")),
static_cast< XClipboardEx* >( this ) );
if ( NULL != m_pImpl.get( ) )
@@ -122,7 +122,7 @@ void SAL_CALL CWinClipboard::setContents( const Reference< XTransferable >& xTra
MutexGuard aGuard( m_aMutex );
if ( rBHelper.bDisposed )
- throw DisposedException( OUString::createFromAscii( "object is already disposed" ),
+ throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")),
static_cast< XClipboardEx* >( this ) );
if ( NULL != m_pImpl.get( ) )
@@ -136,13 +136,13 @@ void SAL_CALL CWinClipboard::setContents( const Reference< XTransferable >& xTra
OUString SAL_CALL CWinClipboard::getName( ) throw( RuntimeException )
{
if ( rBHelper.bDisposed )
- throw DisposedException( OUString::createFromAscii( "object is already disposed" ),
+ throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")),
static_cast< XClipboardEx* >( this ) );
if ( NULL != m_pImpl.get( ) )
return m_pImpl->getName( );
- return OUString::createFromAscii( "" );
+ return OUString(RTL_CONSTASCII_USTRINGPARAM(""));
}
//========================================================================
@@ -154,7 +154,7 @@ void SAL_CALL CWinClipboard::flushClipboard( ) throw( RuntimeException )
MutexGuard aGuard( m_aMutex );
if ( rBHelper.bDisposed )
- throw DisposedException( OUString::createFromAscii( "object is already disposed" ),
+ throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")),
static_cast< XClipboardEx* >( this ) );
if ( NULL != m_pImpl.get( ) )
@@ -168,7 +168,7 @@ void SAL_CALL CWinClipboard::flushClipboard( ) throw( RuntimeException )
sal_Int8 SAL_CALL CWinClipboard::getRenderingCapabilities( ) throw( RuntimeException )
{
if ( rBHelper.bDisposed )
- throw DisposedException( OUString::createFromAscii( "object is already disposed" ),
+ throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")),
static_cast< XClipboardEx* >( this ) );
if ( NULL != m_pImpl.get( ) )
@@ -189,12 +189,12 @@ void SAL_CALL CWinClipboard::addClipboardListener( const Reference< XClipboardLi
throw( RuntimeException )
{
if ( rBHelper.bDisposed )
- throw DisposedException( OUString::createFromAscii( "object is already disposed" ),
+ throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")),
static_cast< XClipboardEx* >( this ) );
// check input parameter
if ( !listener.is( ) )
- throw IllegalArgumentException( OUString::createFromAscii( "empty reference" ),
+ throw IllegalArgumentException( OUString(RTL_CONSTASCII_USTRINGPARAM("empty reference")),
static_cast< XClipboardEx* >( this ),
1 );
@@ -209,12 +209,12 @@ void SAL_CALL CWinClipboard::removeClipboardListener( const Reference< XClipboar
throw( RuntimeException )
{
if ( rBHelper.bDisposed )
- throw DisposedException( OUString::createFromAscii( "object is already disposed" ),
+ throw DisposedException( OUString(RTL_CONSTASCII_USTRINGPARAM("object is already disposed")),
static_cast< XClipboardEx* >( this ) );
// check input parameter
if ( !listener.is( ) )
- throw IllegalArgumentException( OUString::createFromAscii( "empty reference" ),
+ throw IllegalArgumentException( OUString(RTL_CONSTASCII_USTRINGPARAM("empty reference")),
static_cast< XClipboardEx* >( this ),
1 );