summaryrefslogtreecommitdiffstats
path: root/src/xml/repr-io.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-08-05 21:07:35 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-08-05 21:07:35 +0000
commitc0f2f5606f0884e00f426653168b84b23d26ffb3 (patch)
treebf8d55883afbd6fedb3428788c86fa117529023a /src/xml/repr-io.cpp
parentfix memleak (rows) (diff)
downloadinkscape-c0f2f5606f0884e00f426653168b84b23d26ffb3.tar.gz
inkscape-c0f2f5606f0884e00f426653168b84b23d26ffb3.zip
code cleanup (cppcheck)
(bzr r12469)
Diffstat (limited to 'src/xml/repr-io.cpp')
-rw-r--r--src/xml/repr-io.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xml/repr-io.cpp b/src/xml/repr-io.cpp
index 1b6116936..af47779fe 100644
--- a/src/xml/repr-io.cpp
+++ b/src/xml/repr-io.cpp
@@ -504,7 +504,6 @@ gint sp_repr_qualified_name (gchar *p, gint len, xmlNsPtr ns, const xmlChar *nam
static Node *sp_repr_svg_read_node (Document *xml_doc, xmlNodePtr node, const gchar *default_ns, GHashTable *prefix_map)
{
- Node *repr, *crepr;
xmlAttrPtr prop;
xmlNodePtr child;
gchar c[256];
@@ -544,7 +543,7 @@ static Node *sp_repr_svg_read_node (Document *xml_doc, xmlNodePtr node, const gc
}
sp_repr_qualified_name (c, 256, node->ns, node->name, default_ns, prefix_map);
- repr = xml_doc->createElement(c);
+ Node *repr = xml_doc->createElement(c);
/* TODO remember node->ns->prefix if node->ns != NULL */
for (prop = node->properties; prop != NULL; prop = prop->next) {
@@ -561,7 +560,7 @@ static Node *sp_repr_svg_read_node (Document *xml_doc, xmlNodePtr node, const gc
child = node->xmlChildrenNode;
for (child = node->xmlChildrenNode; child != NULL; child = child->next) {
- crepr = sp_repr_svg_read_node (xml_doc, child, default_ns, prefix_map);
+ Node *crepr = sp_repr_svg_read_node (xml_doc, child, default_ns, prefix_map);
if (crepr) {
repr->appendChild(crepr);
Inkscape::GC::release(crepr);