summaryrefslogtreecommitdiffstats
path: root/src/attributes.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2019-10-28 11:33:56 +0000
committerThomas Holder <thomas@thomas-holder.de>2019-10-28 11:33:56 +0000
commit24dfa5187ce285dd862b20262d37a7d789ef9810 (patch)
tree16d2d566e82c474a951f68d7cad64ff63a52ff4f /src/attributes.cpp
parentrefactor: TypedSPI (diff)
downloadinkscape-24dfa5187ce285dd862b20262d37a7d789ef9810.tar.gz
inkscape-24dfa5187ce285dd862b20262d37a7d789ef9810.zip
refactor: Eliminate SPIEnum::_name
Diffstat (limited to 'src/attributes.cpp')
-rw-r--r--src/attributes.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/attributes.cpp b/src/attributes.cpp
index 49ec997ec..549dcf8ce 100644
--- a/src/attributes.cpp
+++ b/src/attributes.cpp
@@ -561,6 +561,8 @@ static SPStyleProp const props[] = {
#define n_attrs (sizeof(props) / sizeof(props[0]))
+static_assert(n_attrs == SPAttributeEnum_SIZE, "");
+
/**
* Inverse to the \c props array for lookup by name.
*/