fix: toLowerInPlace infinite recursion + remove redundant callback guards

Fix toLowerInPlace() which was accidentally self-recursive (would stack
overflow on any Lua string lowering). Remove 30 redundant
if(addonEventCallback_) wrappers around pure fireAddonEvent blocks.
Extract color constants in performance_hud.cpp (24 inline literals).
This commit is contained in:
Kelsi 2026-03-25 12:37:29 -07:00
parent b892dca0e5
commit b66033c6d8
3 changed files with 32 additions and 86 deletions

View file

@ -22,7 +22,7 @@ extern "C" {
namespace wowee::addons {
static void toLowerInPlace(std::string& s) {
toLowerInPlace(s);
for (char& c : s) c = static_cast<char>(std::tolower(static_cast<unsigned char>(c)));
}
// Shared GetTime() epoch — all time-returning functions must use this same origin