diff options
Diffstat (limited to 'l10ntools/source/helper.cxx')
-rw-r--r-- | l10ntools/source/helper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/l10ntools/source/helper.cxx b/l10ntools/source/helper.cxx index 053375085911..80b079e27151 100644 --- a/l10ntools/source/helper.cxx +++ b/l10ntools/source/helper.cxx @@ -122,12 +122,12 @@ OString UnQuotHTML( const OString& rString ) return sReturn.makeStringAndClear(); } -bool isWellFormedXML( OString const & text ) +bool isWellFormedXML( std::string_view text ) { xmlDocPtr doc; bool result = true; - OString content = "<root>" + text + "</root>"; + OString content = OString::Concat("<root>") + text + "</root>"; doc = xmlParseMemory(content.getStr(),static_cast<int>(content.getLength())); if (doc == nullptr) { result = false; |