summaryrefslogtreecommitdiff
path: root/unoxml/source/xpath/xpathapi.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/xpath/xpathapi.cxx')
-rw-r--r--unoxml/source/xpath/xpathapi.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/unoxml/source/xpath/xpathapi.cxx b/unoxml/source/xpath/xpathapi.cxx
index a7346b9042bc..915d6660d53d 100644
--- a/unoxml/source/xpath/xpathapi.cxx
+++ b/unoxml/source/xpath/xpathapi.cxx
@@ -126,13 +126,12 @@ namespace XPath
{
nsmap_t::const_iterator i = nsmap.begin();
OString oprefix, ouri;
- xmlChar *p, *u;
while (i != nsmap.end())
{
oprefix = OUStringToOString(i->first, RTL_TEXTENCODING_UTF8);
ouri = OUStringToOString(i->second, RTL_TEXTENCODING_UTF8);
- p = (xmlChar*)oprefix.getStr();
- u = (xmlChar*)ouri.getStr();
+ xmlChar *p = (xmlChar*)oprefix.getStr();
+ xmlChar *u = (xmlChar*)ouri.getStr();
xmlXPathRegisterNs(ctx, p, u);
++i;
}