diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2010-11-11 14:04:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-11 14:04:25 +0000 |
commit | c64cb59aa0fac9517b3b3e58343e1e3f747c0b2d (patch) | |
tree | 021f3beb7df1717263dca3bee47eb93c03649bdf /sc/source/filter/xml/xmlwrap.cxx | |
parent | 381c8d7694eebe9b8cf48d48222449918cc1b49c (diff) |
Use RTL_CONSTASCII_USTRINGPARAM
Diffstat (limited to 'sc/source/filter/xml/xmlwrap.cxx')
-rw-r--r-- | sc/source/filter/xml/xmlwrap.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index e61cdb4927ef..6dc190374708 100644 --- a/sc/source/filter/xml/xmlwrap.cxx +++ b/sc/source/filter/xml/xmlwrap.cxx @@ -180,7 +180,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(uno::Reference<lang::XMultiSe // get a pipe for connecting the data source to the parser xPipe = xServiceFactory->createInstance( - OUString::createFromAscii("com.sun.star.io.Pipe") ); + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.io.Pipe")) ); DBG_ASSERT( xPipe.is(), "XMLReader::Read: com.sun.star.io.Pipe service missing" ); if( !xPipe.is() ) @@ -450,7 +450,7 @@ sal_Bool ScXMLImportWrapper::Import(sal_Bool bStylesOnly, ErrCode& nError) aName = pDocHierarchItem->GetValue(); } else - aName = ::rtl::OUString::createFromAscii( "dummyObjectName" ); + aName = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "dummyObjectName" )); if( aName.getLength() ) { @@ -842,7 +842,7 @@ sal_Bool ScXMLImportWrapper::Export(sal_Bool bStylesOnly) // TODO/LATER: do not do it for embedded links if( SFX_CREATE_MODE_EMBEDDED == pObjSh->GetCreateMode() ) { - OUString aName = ::rtl::OUString::createFromAscii( "dummyObjectName" ); + OUString aName(RTL_CONSTASCII_USTRINGPARAM("dummyObjectName")); if ( pMedium && pMedium->GetItemSet() ) { const SfxStringItem* pDocHierarchItem = static_cast<const SfxStringItem*>( @@ -994,5 +994,4 @@ sal_Bool ScXMLImportWrapper::Export(sal_Bool bStylesOnly) } - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |