1
0
mirror of synced 2025-02-20 04:01:01 +01:00

fix: Some clang issues

This commit is contained in:
WerWolv 2022-08-18 00:24:29 +02:00
parent 9c4e314bb6
commit a56a8c1d6c
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit ec8ed47d66ba775154d938af3a842f9cdd7b218f
Subproject commit 4e9492ee72a7d518de3bcad6308ea4e53148a365

View File

@ -118,7 +118,7 @@ namespace hex::plugin::builtin {
template<typename T>
static hex::ContentRegistry::DataInspector::impl::GeneratorFunction drawString(T func) {
return [func](const std::vector<u8> &buffer, std::endian endian, Style style) {
return [value = func(buffer, endian, style)] -> std::string { ImGui::TextUnformatted(value.c_str()); return value; };
return [value = func(buffer, endian, style)]() -> std::string { ImGui::TextUnformatted(value.c_str()); return value; };
};
}