summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
Diffstat (limited to 'sax')
-rw-r--r--sax/qa/cppunit/xmlimport.cxx2
-rw-r--r--sax/source/expatwrap/sax_expat.cxx5
2 files changed, 4 insertions, 3 deletions
diff --git a/sax/qa/cppunit/xmlimport.cxx b/sax/qa/cppunit/xmlimport.cxx
index 9d7832b8c4b6..459dcd09bd27 100644
--- a/sax/qa/cppunit/xmlimport.cxx
+++ b/sax/qa/cppunit/xmlimport.cxx
@@ -373,7 +373,7 @@ void XMLImportTest::setUp()
}
xInit->initialize( namespaceArgs );
- m_sDirPath = m_directories.getPathFromSrc( "/sax/qa/data/" );
+ m_sDirPath = m_directories.getPathFromSrc( u"/sax/qa/data/" );
}
void XMLImportTest::parse()
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx
index b23bf2f9f1f1..885d9757dc43 100644
--- a/sax/source/expatwrap/sax_expat.cxx
+++ b/sax/source/expatwrap/sax_expat.cxx
@@ -21,6 +21,7 @@
#include <cassert>
#include <memory>
#include <utility>
+#include <string_view>
#include <vector>
@@ -540,7 +541,7 @@ css::uno::Sequence< OUString > SaxExpatParser::getSupportedServiceNames()
*
*
*-------------------------------------------*/
-OUString getErrorMessage( XML_Error xmlE, const OUString& sSystemId , sal_Int32 nLine )
+OUString getErrorMessage( XML_Error xmlE, std::u16string_view sSystemId , sal_Int32 nLine )
{
OUString Message;
if( XML_ERROR_NONE == xmlE ) {
@@ -613,7 +614,7 @@ OUString getErrorMessage( XML_Error xmlE, const OUString& sSystemId , sal_Int32
Message = "not standalone";
}
- OUString str = "[" +
+ OUString str = OUString::Concat("[") +
sSystemId +
" line " +
OUString::number( nLine ) +