diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2019-10-28 11:33:56 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2019-10-28 11:33:56 +0000 |
| commit | 24dfa5187ce285dd862b20262d37a7d789ef9810 (patch) | |
| tree | 16d2d566e82c474a951f68d7cad64ff63a52ff4f /src/attributes.cpp | |
| parent | refactor: TypedSPI (diff) | |
| download | inkscape-24dfa5187ce285dd862b20262d37a7d789ef9810.tar.gz inkscape-24dfa5187ce285dd862b20262d37a7d789ef9810.zip | |
refactor: Eliminate SPIEnum::_name
Diffstat (limited to 'src/attributes.cpp')
| -rw-r--r-- | src/attributes.cpp | 2 |
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. */ |
