[Libreoffice-commits] core.git: sfx2/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Wed Dec 23 12:10:00 UTC 2020
sfx2/source/doc/SfxDocumentMetaData.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 554bd2927f525450e96a12e733f16c86c76ac8e6
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Dec 23 10:47:27 2020 +0100
Commit: Stephan Bergmann <sbergman at 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 <sbergman at 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
More information about the Libreoffice-commits
mailing list