cleanup createFromAscii calls
This commit is contained in:
parent
b61f6b3ead
commit
51838cd27f
4 changed files with 9 additions and 11 deletions
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -516,8 +516,8 @@ collectFilesFromStorage(uno::Reference<embed::XStorage> const& i_xStorage,
|
|||
::rtl::OUString i_Path,
|
||||
std::set< ::rtl::OUString > & o_rFiles)
|
||||
{
|
||||
static ::rtl::OUString content(::rtl::OUString::createFromAscii(s_content));
|
||||
static ::rtl::OUString styles (::rtl::OUString::createFromAscii(s_styles ));
|
||||
static ::rtl::OUString content(RTL_CONSTASCII_USTRINGPARAM(s_content));
|
||||
static ::rtl::OUString styles(RTL_CONSTASCII_USTRINGPARAM(s_styles ));
|
||||
try {
|
||||
if (i_xStorage->hasByName(content) &&
|
||||
i_xStorage->isStreamElement(content))
|
||||
|
@ -643,7 +643,7 @@ exportStream(struct DocumentMetadataAccess_Impl & i_rImpl,
|
|||
if (xStreamProps.is()) { // this is NOT supported in FileSystemStorage
|
||||
xStreamProps->setPropertyValue(
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MediaType")),
|
||||
uno::makeAny(::rtl::OUString::createFromAscii(s_rdfxml)));
|
||||
uno::makeAny(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(s_rdfxml))));
|
||||
}
|
||||
const uno::Reference<io::XOutputStream> xOutStream(
|
||||
xStream->getOutputStream(), uno::UNO_SET_THROW );
|
||||
|
|
|
@ -1232,8 +1232,6 @@ void SAL_CALL SfxDocumentMetaData::init(
|
|||
css::uno::UNO_QUERY_THROW);
|
||||
// NB: the following is a _bad_idea_ with our DOM implementation
|
||||
// do _not_ create attributes with xmlns prefix!
|
||||
// xRElem->setAttribute(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("xmlns:office")),
|
||||
// ::rtl::OUString::createFromAscii(s_nsODF));
|
||||
xRElem->setAttributeNS(::rtl::OUString::createFromAscii(s_nsODF),
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("office:version")),
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("1.0")));
|
||||
|
|
Loading…
Reference in a new issue