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

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; };
};
}