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 --- meson.build | 2 +- 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); - 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