From e5f2fdd0fc23a1ac597c8efaed4ad51ceb95e055 Mon Sep 17 00:00:00 2001 From: Fleeym <61891787+Fleeym@users.noreply.github.com> Date: Wed, 25 Oct 2023 22:51:59 +0300 Subject: [PATCH] remove template from getSettingValue() --- src/features/NewColorSelect.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/features/NewColorSelect.cpp b/src/features/NewColorSelect.cpp index 04170f9a..723abce4 100644 --- a/src/features/NewColorSelect.cpp +++ b/src/features/NewColorSelect.cpp @@ -150,7 +150,7 @@ class $modify(NewColorSelect, CustomizeObjectLayer) { } void onSelectColor(CCObject* sender) { - if (!Mod::get()->template getSettingValue("new-color-menu")) { + if (!Mod::get()->getSettingValue("new-color-menu")) { return CustomizeObjectLayer::onSelectColor(sender); } CustomizeObjectLayer::onSelectColor(sender); @@ -175,7 +175,7 @@ class $modify(NewColorSelect, CustomizeObjectLayer) { } void highlightSelected(ButtonSprite* sprite) { - if (!Mod::get()->template getSettingValue("new-color-menu")) { + if (!Mod::get()->getSettingValue("new-color-menu")) { return CustomizeObjectLayer::highlightSelected(sprite); } auto selected = this->getActiveMode(true); @@ -185,7 +185,7 @@ class $modify(NewColorSelect, CustomizeObjectLayer) { } void colorSelectClosed(CCNode* target) { - if (!Mod::get()->template getSettingValue("new-color-menu")) { + if (!Mod::get()->getSettingValue("new-color-menu")) { return CustomizeObjectLayer::colorSelectClosed(target); } CustomizeObjectLayer::colorSelectClosed(target); @@ -193,7 +193,7 @@ class $modify(NewColorSelect, CustomizeObjectLayer) { } void updateCustomColorLabels() { - if (!Mod::get()->template getSettingValue("new-color-menu")) { + if (!Mod::get()->getSettingValue("new-color-menu")) { return CustomizeObjectLayer::updateCustomColorLabels(); } // prevent textChanged from firing @@ -205,7 +205,7 @@ class $modify(NewColorSelect, CustomizeObjectLayer) { } void onUpdateCustomColor(CCObject* sender) { - if (!Mod::get()->template getSettingValue("new-color-menu")) { + if (!Mod::get()->getSettingValue("new-color-menu")) { return CustomizeObjectLayer::onUpdateCustomColor(sender); } // recreate to avoid the default clamp of 10..999 without needing to patch @@ -288,7 +288,7 @@ class $modify(NewColorSelect, CustomizeObjectLayer) { } void textChanged(CCTextInputNode* input) { - if (!Mod::get()->template getSettingValue("new-color-menu")) { + if (!Mod::get()->getSettingValue("new-color-menu")) { return CustomizeObjectLayer::textChanged(input); } CustomizeObjectLayer::textChanged(input); @@ -297,7 +297,7 @@ class $modify(NewColorSelect, CustomizeObjectLayer) { } void onClose(CCObject* sender) { - if (!Mod::get()->template getSettingValue("new-color-menu")) { + if (!Mod::get()->getSettingValue("new-color-menu")) { return CustomizeObjectLayer::onClose(sender); } // add selected color to recent list if it's not there and it's not 0 @@ -360,7 +360,7 @@ class $modify(NewColorSelect, CustomizeObjectLayer) { if (!CustomizeObjectLayer::init(obj, objs)) return false; - if (!Mod::get()->template getSettingValue("new-color-menu")) { + if (!Mod::get()->getSettingValue("new-color-menu")) { return true; }