summaryrefslogtreecommitdiffstats
path: root/src/attributes.h
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/attributes.h
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/attributes.h')
-rw-r--r--src/attributes.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/attributes.h b/src/attributes.h
index c84016138..b6637c27e 100644
--- a/src/attributes.h
+++ b/src/attributes.h
@@ -15,9 +15,6 @@
*/
#include <glibmm/value.h>
-unsigned int sp_attribute_lookup(gchar const *key);
-unsigned char const *sp_attribute_name(unsigned int id);
-
/**
* True iff k is a property in SVG, i.e. something that can be written either in a style attribute
* or as its own XML attribute. This must be kept in sync with SPAttributeEnum.
@@ -31,7 +28,7 @@ unsigned char const *sp_attribute_name(unsigned int id);
* line-by-line comparison. Also, inorder for proper parsing, some
* properites must be before others (e.g. 'font' before 'font-family').
*/
-enum SPAttributeEnum {
+enum SPAttributeEnum : unsigned {
SP_ATTR_INVALID, ///< Must have value 0.
/* SPObject */
SP_ATTR_ID,
@@ -569,6 +566,9 @@ enum SPAttributeEnum {
SP_PROP_PATH_EFFECT,
};
+SPAttributeEnum sp_attribute_lookup(gchar const *key);
+gchar const *sp_attribute_name(SPAttributeEnum id);
+
#endif