File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ namespace horrible {
142142}
143143
144144// Delegate hooks to OptionManager for dynamic toggling
145- #define HORRIBLE_DELEGATE_HOOKS (id ) \
145+ #define HORRIBLE_DELEGATE_HOOKS (optID ) \
146146static void onModify (auto & self) { \
147- horrible::delegateHooks (id , self.m_hooks ); \
147+ horrible::delegateHooks (std::string (optID) , self.m_hooks ); \
148148}
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ Result<Option> OptionManager::getOptionInfo(std::string_view id) const noexcept
5656};
5757
5858size_t OptionManager::getDelegateCount (std::string_view id) const noexcept {
59- for (auto const & [optionId , delegates] : m_delegates) {
60- if (optionId == id) return delegates.size ();
59+ for (auto const & [optionID , delegates] : m_delegates) {
60+ if (optionID == id) return delegates.size ();
6161 };
6262
6363 return 0 ;
You can’t perform that action at this time.
0 commit comments