Kaydet (Commit) 3607b14a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

unoxml: Use appropriate OUString functions on string constants

Change-Id: I6be6717b1714e2f7115ec8e27c5026a439bf1b05
üst 994cc6c8
...@@ -65,7 +65,7 @@ namespace DOM ...@@ -65,7 +65,7 @@ namespace DOM
strlen(reinterpret_cast<const char*>(pPrefix)), strlen(reinterpret_cast<const char*>(pPrefix)),
RTL_TEXTENCODING_UTF8); RTL_TEXTENCODING_UTF8);
OUString name = (prefix.isEmpty()) OUString name = (prefix.isEmpty())
? OUString( "xmlns" ) : OUString( "xmlns:" ) + prefix; ? OUString( "xmlns" ) : "xmlns:" + prefix;
const xmlChar *pHref = pNs->href; const xmlChar *pHref = pNs->href;
OUString val(reinterpret_cast<const sal_Char*>(pHref), OUString val(reinterpret_cast<const sal_Char*>(pHref),
strlen(reinterpret_cast<const char*>(pHref)), strlen(reinterpret_cast<const char*>(pHref)),
......
...@@ -746,7 +746,7 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< css::uno::Any > & aArgu ...@@ -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 // just append the parameters and then split them again; seems simplest
arg0 = arg0 + arg1; arg0 = arg0 + arg1;
arg1 = ""; arg1.clear();
} }
// split parameter // split parameter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment