aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-11-06 15:16:05 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-11-21 18:28:07 +0200
commit18a791e70764aaf04232924de58e44fa89ec9245 (patch)
tree926d56e5a195b75bc0fbe101906c81e5bf7b4a9f
parentFix multiple inputs error (diff)
downloadrcc-18a791e70764aaf04232924de58e44fa89ec9245.tar.xz
Fix hardcoded namespace in generated codev0.1.2simple
-rw-r--r--meson.build2
-rw-r--r--rcc_format/util.py4
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)