From 24dfa5187ce285dd862b20262d37a7d789ef9810 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Mon, 28 Oct 2019 12:33:56 +0100 Subject: refactor: Eliminate SPIEnum::_name --- src/attributes.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/attributes.cpp') 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. */ -- cgit v1.2.3