summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2010-11-22 12:22:41 +0000
committerMichael Meeks <michael.meeks@novell.com>2010-11-22 12:22:41 +0000
commit31a29ec9333c6851d02e556a19c8c475cf0c57ef (patch)
treea25162f90a62a1936fc51a7b082513b15fc77a37 /scripting
parentc395b39ca0e16de384727aac606820995ccd5c15 (diff)
cleanup createFromAscii calls
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/storage/ScriptSecurityManager.cxx2
-rw-r--r--scripting/source/storage/ScriptStorage.cxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/scripting/source/storage/ScriptSecurityManager.cxx b/scripting/source/storage/ScriptSecurityManager.cxx
index 6585c9639b..824ef6116d 100644
--- a/scripting/source/storage/ScriptSecurityManager.cxx
+++ b/scripting/source/storage/ScriptSecurityManager.cxx
@@ -137,7 +137,7 @@ throw ( RuntimeException )
Reference< XInterface > xInterface;
Any a = m_xContext->getValueByName(
- OUString::createFromAscii( SCRIPTSTORAGEMANAGER_SERVICE ) );
+ OUString(RTL_CONSTASCII_USTRINGPARAM( SCRIPTSTORAGEMANAGER_SERVICE )) );
if ( sal_False == ( a >>= xInterface ) )
{
throw RuntimeException(
diff --git a/scripting/source/storage/ScriptStorage.cxx b/scripting/source/storage/ScriptStorage.cxx
index 0d6109d0a0..4837ffa0e2 100644
--- a/scripting/source/storage/ScriptStorage.cxx
+++ b/scripting/source/storage/ScriptStorage.cxx
@@ -290,8 +290,8 @@ throw ( RuntimeException, Exception )
validateXRef( xSMI, "ScriptStorage::create: failed to obtain valid XExtendedDocumentHandler" );
- xStringUri = xStringUri.concat( ::rtl::OUString::createFromAscii(
- SCRIPT_DIR ) );
+ xStringUri = xStringUri.concat( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+ SCRIPT_DIR )) );
// No Scripts directory - just return
if ( ! m_xSimpleFileAccess->isFolder( xStringUri ) )
@@ -329,7 +329,7 @@ throw ( RuntimeException, Exception )
RTL_TEXTENCODING_ASCII_US ).pData->buffer );
OUString parcelFile = parcelDirs[ j ].concat(
- ::rtl::OUString::createFromAscii( SCRIPT_PARCEL ) );
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( SCRIPT_PARCEL )) );
// Do not have a valid parcel.xml
if ( !m_xSimpleFileAccess->exists( parcelFile ) ||
@@ -559,8 +559,8 @@ throw ( RuntimeException )
// xScriptInvocation = Reference<XScriptInvocation>(xx, UNO_QUERY_THROW);
Reference< xml::sax::XExtendedDocumentHandler > xHandler;
- OUString parcel_suffix = OUString::createFromAscii( SCRIPT_PARCEL );
- OUString ou_parcel = OUString(
+ OUString parcel_suffix(RTL_CONSTASCII_USTRINGPARAM( SCRIPT_PARCEL ));
+ OUString ou_parcel(
RTL_CONSTASCII_USTRINGPARAM( SCRIPT_PARCEL_NAME_ONLY ) );
try