From 18a791e70764aaf04232924de58e44fa89ec9245 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 6 Nov 2020 15:16:05 +0200 Subject: Fix hardcoded namespace in generated code --- rcc_format/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rcc_format') 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); - 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) -- cgit v1.2.1