summaryrefslogtreecommitdiffstats
path: root/src/attribute-rel-util.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-01-23 18:45:08 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-01-23 18:45:08 +0000
commit4d368c0ed0441dfd9e0cda7fa1c0f370180fa4ae (patch)
treeacea66c8bca4772a4d23a508cbab679bb678616f /src/attribute-rel-util.cpp
parentClean up more GObject type definitions (diff)
downloadinkscape-4d368c0ed0441dfd9e0cda7fa1c0f370180fa4ae.tar.gz
inkscape-4d368c0ed0441dfd9e0cda7fa1c0f370180fa4ae.zip
cppcheck: style and performance
(bzr r12056)
Diffstat (limited to '')
-rw-r--r--src/attribute-rel-util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attribute-rel-util.cpp b/src/attribute-rel-util.cpp
index 38327b413..0527dad4e 100644
--- a/src/attribute-rel-util.cpp
+++ b/src/attribute-rel-util.cpp
@@ -209,9 +209,9 @@ void sp_attribute_clean_style(Node* repr, SPCSSAttr *css, unsigned int flags) {
}
// Find parent value for same property (property)
- gchar const * property_p = NULL;
gchar const * value_p = NULL;
if( css_parent != NULL ) {
+ gchar const * property_p = NULL;
for ( List<AttributeRecord const> iter_p = css_parent->attributeList() ; iter_p ; ++iter_p ) {
property_p = g_quark_to_string(iter_p->key);