diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-26 21:35:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-26 21:47:19 +0000 |
commit | b53b1e980ff83bd2b28ff709d35308cee079e75a (patch) | |
tree | d41a1961c418b03ad3e0eb162c84af8da3f988ca | |
parent | 8599fb3e28c8a5ecc30919cd94510550ac980aa4 (diff) |
cppcheck: use prefix variantfeature/bootstrap-build
-rw-r--r-- | unoxml/source/dom/saxbuilder.cxx | 12 | ||||
-rw-r--r-- | unoxml/source/xpath/xpathapi.cxx | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx index 137ce871a..17d7eac2c 100644 --- a/unoxml/source/dom/saxbuilder.cxx +++ b/unoxml/source/dom/saxbuilder.cxx @@ -263,10 +263,8 @@ namespace DOM attr_qname = a->first; attr_value = a->second; idx = attr_qname.indexOf(':'); - if(idx != -1) - { + if (idx != -1) aPrefix = attr_qname.copy(0, idx); - } else aPrefix = OUString(); @@ -275,11 +273,13 @@ namespace DOM { // set attribute with namespace aElement->setAttributeNS(result->second, attr_qname, attr_value); - } else { + } + else + { // set attribute without namespace aElement->setAttribute(attr_qname, attr_value); - } - a++; + } + ++a; } m_aNSStack.push(aNSMap); } diff --git a/unoxml/source/xpath/xpathapi.cxx b/unoxml/source/xpath/xpathapi.cxx index cb88a513c..97c5a8861 100644 --- a/unoxml/source/xpath/xpathapi.cxx +++ b/unoxml/source/xpath/xpathapi.cxx @@ -134,7 +134,7 @@ namespace XPath p = (xmlChar*)oprefix.getStr(); u = (xmlChar*)ouri.getStr(); xmlXPathRegisterNs(ctx, p, u); - i++; + ++i; } } @@ -185,7 +185,7 @@ namespace XPath reinterpret_cast<void*>( sal::static_int_cast<sal_IntPtr>(aHandle.variableData))); } - i++; + ++i; } } |