summaryrefslogtreecommitdiff
path: root/dtrans/source/generic/clipboardmanager.cxx
diff options
context:
space:
mode:
authorGert Faller <gertfaller@aliceadsl.fr>2010-11-22 17:03:48 +0100
committerGert Faller <gertfaller@aliceadsl.fr>2010-11-22 17:03:48 +0100
commita23d54eed27736eda876e975c510d7b3c230c5b8 (patch)
treeac7f118911c831732893cbacca8e37195e7b00b6 /dtrans/source/generic/clipboardmanager.cxx
parent433b107ea2bcc5242ab515cb82a9e6954e0c899b (diff)
RTL_CONSTASCII_USTRINGPARAM in libs-gui 02
Diffstat (limited to 'dtrans/source/generic/clipboardmanager.cxx')
-rw-r--r--dtrans/source/generic/clipboardmanager.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/dtrans/source/generic/clipboardmanager.cxx b/dtrans/source/generic/clipboardmanager.cxx
index 1221cd20f046..99b6a7b24b36 100644
--- a/dtrans/source/generic/clipboardmanager.cxx
+++ b/dtrans/source/generic/clipboardmanager.cxx
@@ -48,7 +48,7 @@ using ::rtl::OUString;
ClipboardManager::ClipboardManager():
WeakComponentImplHelper3< XClipboardManager, XEventListener, XServiceInfo > (m_aMutex),
- m_aDefaultName(OUString::createFromAscii("default"))
+ m_aDefaultName(OUString(RTL_CONSTASCII_USTRINGPARAM("default")))
{
}
@@ -97,7 +97,7 @@ Reference< XClipboard > SAL_CALL ClipboardManager::getClipboard( const OUString&
// object is disposed already
if (rBHelper.bDisposed)
- throw DisposedException(OUString::createFromAscii("object is disposed."),
+ throw DisposedException(OUString(RTL_CONSTASCII_USTRINGPARAM("object is disposed.")),
static_cast < XClipboardManager * > (this));
ClipboardMap::iterator iter =
@@ -118,13 +118,13 @@ void SAL_CALL ClipboardManager::addClipboard( const Reference< XClipboard >& xCl
// check parameter
if (!xClipboard.is())
- throw IllegalArgumentException(OUString::createFromAscii("empty reference"),
+ throw IllegalArgumentException(OUString(RTL_CONSTASCII_USTRINGPARAM("empty reference")),
static_cast < XClipboardManager * > (this), 1);
// the name "default" is reserved for internal use
OUString aName = xClipboard->getName();
if (m_aDefaultName.compareTo(aName) == 0)
- throw IllegalArgumentException(OUString::createFromAscii("name reserved"),
+ throw IllegalArgumentException(OUString(RTL_CONSTASCII_USTRINGPARAM("name reserved")),
static_cast < XClipboardManager * > (this), 1);
// try to add new clipboard to the list
@@ -167,7 +167,7 @@ Sequence< OUString > SAL_CALL ClipboardManager::listClipboardNames()
MutexGuard aGuard(m_aMutex);
if (rBHelper.bDisposed)
- throw DisposedException(OUString::createFromAscii("object is disposed."),
+ throw DisposedException(OUString(RTL_CONSTASCII_USTRINGPARAM("object is disposed.")),
static_cast < XClipboardManager * > (this));
if (rBHelper.bInDispose)
@@ -257,7 +257,7 @@ Sequence< OUString > SAL_CALL ClipboardManager_getSupportedServiceNames()
{
Sequence < OUString > SupportedServicesNames( 1 );
SupportedServicesNames[0] =
- OUString::createFromAscii("com.sun.star.datatransfer.clipboard.ClipboardManager");
+ OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.datatransfer.clipboard.ClipboardManager"));
return SupportedServicesNames;
}