summaryrefslogtreecommitdiffstats
path: root/src/object/sp-object.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-10-06 13:28:39 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-10-06 13:28:39 +0000
commit03c35f6065f45346634cdcd8a9d13e4f167549c0 (patch)
tree3a892c439d37cff565592d93e124137e70a42c31 /src/object/sp-object.cpp
parentAdd new style register style property for stop color and opacity (diff)
downloadinkscape-03c35f6065f45346634cdcd8a9d13e4f167549c0.tar.gz
inkscape-03c35f6065f45346634cdcd8a9d13e4f167549c0.zip
SPAttributeEnum typed function arguments
Diffstat (limited to 'src/object/sp-object.cpp')
-rw-r--r--src/object/sp-object.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object/sp-object.cpp b/src/object/sp-object.cpp
index 588bdacd0..7c6b6c28d 100644
--- a/src/object/sp-object.cpp
+++ b/src/object/sp-object.cpp
@@ -879,7 +879,7 @@ void SPObject::repr_order_changed(Inkscape::XML::Node * /*repr*/, Inkscape::XML:
object->order_changed(child, old, newer);
}
-void SPObject::set(unsigned int key, gchar const* value) {
+void SPObject::set(SPAttributeEnum key, gchar const* value) {
#ifdef OBJECT_TRACE
std::stringstream temp;
@@ -975,7 +975,7 @@ void SPObject::set(unsigned int key, gchar const* value) {
#endif
}
-void SPObject::setKeyValue(unsigned int key, gchar const *value)
+void SPObject::setKeyValue(SPAttributeEnum key, gchar const *value)
{
//g_assert(object != NULL);
//g_assert(SP_IS_OBJECT(object));
@@ -992,7 +992,7 @@ void SPObject::readAttr(gchar const *key)
//XML Tree being used here.
g_assert(this->getRepr() != nullptr);
- unsigned int keyid = sp_attribute_lookup(key);
+ auto keyid = sp_attribute_lookup(key);
if (keyid != SP_ATTR_INVALID) {
/* Retrieve the 'key' attribute from the object's XML representation */
gchar const *value = getRepr()->attribute(key);