diff options
Diffstat (limited to 'unoxml/source/rdf/librdf_repository.cxx')
-rw-r--r-- | unoxml/source/rdf/librdf_repository.cxx | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx index 0a3f875e1897..2519fd29e411 100644 --- a/unoxml/source/rdf/librdf_repository.cxx +++ b/unoxml/source/rdf/librdf_repository.cxx @@ -1382,14 +1382,10 @@ void SAL_CALL librdf_Repository::setStatementRDFa( throw (uno::RuntimeException, lang::IllegalArgumentException, rdf::RepositoryException) { - static const ::rtl::OUString s_cell( - ::rtl::OUString::createFromAscii("com.sun.star.table.Cell")); - static const ::rtl::OUString s_cellprops( // for writer - ::rtl::OUString::createFromAscii("com.sun.star.text.CellProperties")); - static const ::rtl::OUString s_paragraph( - ::rtl::OUString::createFromAscii("com.sun.star.text.Paragraph")); - static const ::rtl::OUString s_bookmark( - ::rtl::OUString::createFromAscii("com.sun.star.text.Bookmark")); + static const ::rtl::OUString s_cell(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.table.Cell")); + static const ::rtl::OUString s_cellprops(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.text.CellProperties")); // for writer + static const ::rtl::OUString s_paragraph(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.text.Paragraph")); + static const ::rtl::OUString s_bookmark(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.text.Bookmark")); static const ::rtl::OUString s_meta( ::rtl::OUString::createFromAscii( "com.sun.star.text.InContentMetadata")); @@ -1444,7 +1440,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException, "ensureMetadataReference did not"), *this); } ::rtl::OUString const sXmlId(mdref.First + - ::rtl::OUString::createFromAscii("#") + mdref.Second); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("#")) + mdref.Second); uno::Reference<rdf::XURI> xXmlId; try { xXmlId.set( rdf::URI::create(m_xContext, @@ -1508,7 +1504,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException, try { xXmlId.set( rdf::URI::create(m_xContext, ::rtl::OUString::createFromAscii(s_nsOOo) - + mdref.First + ::rtl::OUString::createFromAscii("#") + + mdref.First + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("#")) + mdref.Second), uno::UNO_QUERY_THROW); } catch (lang::IllegalArgumentException & iae) { @@ -1536,7 +1532,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException, return beans::Pair< uno::Sequence<rdf::Statement>, sal_Bool >(); } ::rtl::OUString const sXmlId(mdref.First + - ::rtl::OUString::createFromAscii("#") + mdref.Second); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("#")) + mdref.Second); uno::Reference<rdf::XURI> xXmlId; try { xXmlId.set( rdf::URI::create(m_xContext, |