diff options
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | rcc_format/util.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/meson.build b/meson.build index 42f0a8b..0da51da 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('rcc', [], - version: '0.1.1', + version: '0.1.2', license: 'BSD-2-Clause', ) diff --git a/rcc_format/util.py b/rcc_format/util.py index af6651b..2cd6341 100644 --- a/rcc_format/util.py +++ b/rcc_format/util.py @@ -51,11 +51,11 @@ def write_footer(file, namespace): constexpr auto get(StrViewLambda name) { static_assert(std::is_same_v<std::string_view, decltype(name())>); - constexpr auto x = std::find_if(icons::entries.begin(), icons::entries.end(), + constexpr auto x = std::find_if(entries.begin(), entries.end(), [=](const auto &tuple) -> bool { return std::get<0>(tuple) == name(); }); - static_assert(x != icons::entries.end()); + static_assert(x != entries.end()); return std::get<1>(*x); }""", file=file) |