sfx2/source/doc/SfxDocumentMetaData.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 554bd2927f525450e96a12e733f16c86c76ac8e6 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Wed Dec 23 10:47:27 2020 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Wed Dec 23 13:09:11 2020 +0100 Directly create OUString instances Change-Id: I58c9104b5efbc2252be7f32019a667ab95ccfaf9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108233 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx index fb0e0eacaa51..962918897301 100644 --- a/sfx2/source/doc/SfxDocumentMetaData.cxx +++ b/sfx2/source/doc/SfxDocumentMetaData.cxx @@ -437,14 +437,14 @@ getQualifier(const char* i_name) { OUString getNameSpace(const char* i_qname) throw () { assert(i_qname); - const char * ns = ""; + OUString ns; OUString n = getQualifier(i_qname).first; if ( n == "xlink" ) ns = s_nsXLink; if ( n == "dc" ) ns = s_nsDC; if ( n == "office" ) ns = s_nsODF; if ( n == "meta" ) ns = s_nsODFMeta; - assert(*ns); - return OUString::createFromAscii(ns); + assert(!ns.isEmpty()); + return ns; } bool _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits