summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ucb/workben/ucb/ucbdemo.cxx28
-rw-r--r--xmloff/source/core/xmlexp.cxx2
-rw-r--r--xmloff/source/meta/xmlmetai.cxx4
-rw-r--r--xmloff/source/style/xmlnumfi.cxx2
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx2
5 files changed, 19 insertions, 19 deletions
diff --git a/ucb/workben/ucb/ucbdemo.cxx b/ucb/workben/ucb/ucbdemo.cxx
index eed407846786..f57c3c7521db 100644
--- a/ucb/workben/ucb/ucbdemo.cxx
+++ b/ucb/workben/ucb/ucbdemo.cxx
@@ -396,7 +396,7 @@ rtl::OUString Ucb::m_aProtocol;
// static
rtl::OUString Ucb::getUnoURL()
{
- rtl::OUString aUnoURL(rtl::OUString::createFromAscii(
+ rtl::OUString aUnoURL(RTL_CONSTASCII_USTRINGPARAM(
"uno:socket,host=localhost,port=8121;"));
if (m_aProtocol.getLength() == 0)
aUnoURL += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("urp"));
@@ -659,8 +659,8 @@ uno::Any UcbCommandProcessor::executeCommand( const rtl::OUString& rName,
= uno::Reference< task::XInteractionHandler >(
m_rUCB.getServiceFactory()->
createInstance(
- rtl::OUString::createFromAscii(
- "com.sun.star.task.InteractionHandler")),
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+ "com.sun.star.task.InteractionHandler"))),
uno::UNO_QUERY);
uno::Reference< ucb::XProgressHandler >
xProgressHandler(new ProgressHandler(m_rUCB));
@@ -1022,9 +1022,9 @@ void UcbContent::open( const rtl::OUString & rName, const UniString& rInput,
m_rUCB.
getServiceFactory()->
createInstance(
- rtl::OUString::createFromAscii(
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.ucb.SortedDynamic"
- "ResultSetFactory")),
+ "ResultSetFactory"))),
uno::UNO_QUERY);
uno::Reference< ucb::XDynamicResultSet > xSorted;
if (xSortedFactory.is())
@@ -1062,8 +1062,8 @@ void UcbContent::open( const rtl::OUString & rName, const UniString& rInput,
try
{
xProperties->
- setPropertyValue(rtl::OUString::createFromAscii(
- "FetchSize"),
+ setPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+ "FetchSize")),
uno::makeAny(nFetchSize));
bSet = true;
}
@@ -1310,8 +1310,8 @@ void UcbContent::transfer( const rtl::OUString& rSourceURL, sal_Bool bMove )
//rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("NewTitle")),
ucb::NameClash::ERROR );
- ucb::Command aTransferCommand( rtl::OUString::createFromAscii(
- "globalTransfer" ),
+ ucb::Command aTransferCommand( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+ "globalTransfer" )),
-1,
uno::makeAny( aArg ) );
@@ -1321,8 +1321,8 @@ void UcbContent::transfer( const rtl::OUString& rSourceURL, sal_Bool bMove )
= uno::Reference< task::XInteractionHandler >(
m_rUCB.getServiceFactory()->
createInstance(
- rtl::OUString::createFromAscii(
- "com.sun.star.task.InteractionHandler")),
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+ "com.sun.star.task.InteractionHandler"))),
uno::UNO_QUERY);
uno::Reference< ucb::XProgressHandler > xProgressHandler(
new ProgressHandler(m_rUCB));
@@ -2287,7 +2287,7 @@ IMPL_LINK( MyWin, ToolBarHandler, ToolBox*, pToolBox )
case MYWIN_ITEMID_REORGANIZE:
if ( m_pContent )
m_pContent->executeCommand (
- rtl::OUString::createFromAscii ("reorganizeData"),
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("reorganizeData")),
uno::Any());
else
print( "No content!" );
@@ -2449,9 +2449,9 @@ void MyApp::Main()
// Read command line params.
//////////////////////////////////////////////////////////////////////
- rtl::OUString aConfigurationKey1(rtl::OUString::createFromAscii(
+ rtl::OUString aConfigurationKey1(RTL_CONSTASCII_USTRINGPARAM(
UCB_CONFIGURATION_KEY1_LOCAL));
- rtl::OUString aConfigurationKey2(rtl::OUString::createFromAscii(
+ rtl::OUString aConfigurationKey2(RTL_CONSTASCII_USTRINGPARAM(
UCB_CONFIGURATION_KEY2_OFFICE));
USHORT nParams = Application::GetCommandLineParamCount();
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index 079a1869904c..cd1e83cafdd6 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -1274,7 +1274,7 @@ lcl_AddGrddl(SvXMLExport & rExport, const sal_Int32 nExportMode)
if (EXPORT_SETTINGS != nExportMode) // meta, content, styles
{
rExport.AddAttribute( XML_NAMESPACE_GRDDL, XML_TRANSFORMATION,
- OUString::createFromAscii(s_grddl_xsl) );
+ OUString(RTL_CONSTASCII_USTRINGPARAM(s_grddl_xsl)) );
}
}
diff --git a/xmloff/source/meta/xmlmetai.cxx b/xmloff/source/meta/xmlmetai.cxx
index b0c501559175..1776d708a908 100644
--- a/xmloff/source/meta/xmlmetai.cxx
+++ b/xmloff/source/meta/xmlmetai.cxx
@@ -200,9 +200,9 @@ void SvXMLMetaDocumentContext::initDocumentProperties()
throw;
} catch (uno::Exception & e) {
throw lang::WrappedTargetRuntimeException(
- ::rtl::OUString::createFromAscii(
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
"SvXMLMetaDocumentContext::initDocumentProperties: "
- "properties init exception"),
+ "properties init exception")),
GetImport(), makeAny(e));
}
}
diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx
index c5ea65853c84..ae3e22c2322a 100644
--- a/xmloff/source/style/xmlnumfi.cxx
+++ b/xmloff/source/style/xmlnumfi.cxx
@@ -893,7 +893,7 @@ void lcl_EnquoteIfNecessary( rtl::OUStringBuffer& rContent, const SvXMLNumFormat
{
// A quote is turned into "\"" - a quote to end quoted text, an escaped quote,
// and a quote to resume quoting.
- rtl::OUString aInsert( rtl::OUString::createFromAscii( "\"\\\"" ) );
+ rtl::OUString aInsert( RTL_CONSTASCII_USTRINGPARAM( "\"\\\"" ) );
sal_Int32 nPos = 0;
while ( nPos < rContent.getLength() )
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
index 4baa8f2a9710..f9ceaaefb8d3 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
@@ -130,7 +130,7 @@ Reference< xml::input::XElement > MultiPage::startChildElement(
throw (xml::sax::SAXException, RuntimeException)
{
// event
-rtl::OUString _label = rtl::OUString::createFromAscii("foo");
+rtl::OUString _label(RTL_CONSTASCII_USTRINGPARAM("foo"));
if (_pImport->isEventElement( nUid, rLocalName ))
{
return new EventElement(