GUI optimizations

This commit is contained in:
Yousef Khadadeh 2026-01-07 12:03:59 +03:00
parent 3953fd16f3
commit 10f3ff40de
11 changed files with 120 additions and 121 deletions

View file

@ -2,18 +2,18 @@
namespace GUIStuff {
GUIManagerID::GUIManagerID(int64_t numID):
GUIManagerID::GUIManagerID(intptr_t numID):
idIsStr(false),
idNum(numID)
{}
GUIManagerID::GUIManagerID(const std::string& strID):
GUIManagerID::GUIManagerID(const char* strID):
idIsStr(true),
idStr(strID)
idNum(reinterpret_cast<intptr_t>(strID))
{}
bool GUIManagerID::operator==(const GUIManagerID& other) const {
return idIsStr == other.idIsStr && idStr == other.idStr && idNum == other.idNum;
return idIsStr == other.idIsStr && idNum == other.idNum;
}
}