summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-18 13:38:45 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-18 14:12:37 +0100
commit3607b14acd6541d31e7a882e83b743423d8a22b7 (patch)
tree15fe9677d7de6899f84b471d77d5a28f42f9a752
parent994cc6c8689f7186193ce504c92fc2bc2fdcb560 (diff)
unoxml: Use appropriate OUString functions on string constants
Change-Id: I6be6717b1714e2f7115ec8e27c5026a439bf1b05
-rw-r--r--unoxml/source/dom/element.cxx2
-rw-r--r--unoxml/source/rdf/CURI.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/unoxml/source/dom/element.cxx b/unoxml/source/dom/element.cxx
index 1b935050043d..03eacf4433fd 100644
--- a/unoxml/source/dom/element.cxx
+++ b/unoxml/source/dom/element.cxx
@@ -65,7 +65,7 @@ namespace DOM
strlen(reinterpret_cast<const char*>(pPrefix)),
RTL_TEXTENCODING_UTF8);
OUString name = (prefix.isEmpty())
- ? OUString( "xmlns" ) : OUString( "xmlns:" ) + prefix;
+ ? OUString( "xmlns" ) : "xmlns:" + prefix;
const xmlChar *pHref = pNs->href;
OUString val(reinterpret_cast<const sal_Char*>(pHref),
strlen(reinterpret_cast<const char*>(pHref)),
diff --git a/unoxml/source/rdf/CURI.cxx b/unoxml/source/rdf/CURI.cxx
index 458b8230c922..e73b95e8e7ec 100644
--- a/unoxml/source/rdf/CURI.cxx
+++ b/unoxml/source/rdf/CURI.cxx
@@ -746,7 +746,7 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< css::uno::Any > & aArgu
}
// just append the parameters and then split them again; seems simplest
arg0 = arg0 + arg1;
- arg1 = "";
+ arg1.clear();
}
// split parameter