diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-23 10:47:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-23 13:09:11 +0100 |
commit | 554bd2927f525450e96a12e733f16c86c76ac8e6 (patch) | |
tree | f9186f14a6f7fa9cd5749f8ca68e453a2cf5fba2 /sfx2 | |
parent | 2e0b757e62536281f61b8d37987378646a246fcb (diff) |
Directly create OUString instances
Change-Id: I58c9104b5efbc2252be7f32019a667ab95ccfaf9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108233
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/SfxDocumentMetaData.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 |