fix(ui): improve const correctness across xml loading functions in ui

This commit is contained in:
fallenoak committed 2025-12-23 22:19:45 -06:00
1 parent d51ea7e0e0
commit 6732199eab
34 files changed
+76 -76

No files matched your search

+2 -2
View File
@@ -86,7 +86,7 @@ bool CSimpleFont::IsA(int32_t type) {
return type == CSimpleFont::s_objectType;
}
void CSimpleFont::LoadXML(XMLNode* node, CStatus* status) {
void CSimpleFont::LoadXML(const XMLNode* node, CStatus* status) {
const char* inheritsAttr = node->GetAttributeByName("inherits");
if (inheritsAttr && *inheritsAttr) {
auto font = CSimpleFont::GetFont(inheritsAttr, 0);
@@ -111,7 +111,7 @@ void CSimpleFont::LoadXML(XMLNode* node, CStatus* status) {
} else {
float fontHeight = 0.0f;
XMLNode* fontHeightNode = node->GetChildByName("FontHeight");
auto fontHeightNode = node->GetChildByName("FontHeight");
if (fontHeightNode) {
LoadXML_Value(fontHeightNode, fontHeight, status);
}