fix: Further MSVC compile fixes

This commit is contained in:
WerWolv
2025-01-31 23:48:38 +01:00
parent 8d1352ddff
commit 3f6b5203ca
27 changed files with 47 additions and 43 deletions

View File

@@ -64,7 +64,7 @@ namespace hex::plugin::builtin {
class FPSWidget : public ContentRegistry::Settings::Widgets::Widget {
public:
bool draw(const std::string &name) override {
auto format = [this] -> std::string {
auto format = [this]() -> std::string {
if (m_value > 200)
return "hex.builtin.setting.interface.fps.unlocked"_lang;
else if (m_value < 15)
@@ -177,7 +177,7 @@ namespace hex::plugin::builtin {
class ScalingWidget : public ContentRegistry::Settings::Widgets::Widget {
public:
bool draw(const std::string &name) override {
auto format = [this] -> std::string {
auto format = [this]() -> std::string {
if (m_value == 0)
return hex::format("{} (x{:.1f})", "hex.builtin.setting.interface.scaling.native"_lang, ImHexApi::System::getNativeScale());
else
@@ -219,7 +219,7 @@ namespace hex::plugin::builtin {
class AutoBackupWidget : public ContentRegistry::Settings::Widgets::Widget {
public:
bool draw(const std::string &name) override {
auto format = [this] -> std::string {
auto format = [this]() -> std::string {
auto value = m_value * 30;
if (value == 0)
return "hex.ui.common.off"_lang;