summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-28 17:56:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-29 16:42:33 +0100
commit042033f1e6da22616cb76c8d950c20c9efecbad5 (patch)
tree26b3f1f42d067506f44550b410f3fb9640616a5b /sax
parentccfd8e9d09f9ac0a0ea92d0f378391006faaf934 (diff)
loplugin:stringviewparam: operator +
Change-Id: I044dd21b63d7eb03224675584fa143009c6b6008 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108418 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
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 ) +