cleanup
This commit is contained in:
@@ -619,7 +619,7 @@ static slotcallback read_slot_func(
|
||||
};
|
||||
}
|
||||
|
||||
static void readSlot(
|
||||
static void read_slot(
|
||||
InventoryView* view, UiXmlReader& reader, const xml::xmlelement& element
|
||||
) {
|
||||
int index = element.attr("index", "0").asInt();
|
||||
@@ -649,7 +649,7 @@ static void readSlot(
|
||||
view->add(slot);
|
||||
}
|
||||
|
||||
static void readSlotsGrid(
|
||||
static void read_slots_grid(
|
||||
InventoryView* view,
|
||||
const UiXmlReader& reader,
|
||||
const xml::xmlelement& element
|
||||
@@ -726,9 +726,9 @@ static std::shared_ptr<UINode> read_inventory(
|
||||
|
||||
for (auto& sub : element.getElements()) {
|
||||
if (sub->getTag() == "slot") {
|
||||
readSlot(view.get(), reader, *sub);
|
||||
read_slot(view.get(), reader, *sub);
|
||||
} else if (sub->getTag() == "slots-grid") {
|
||||
readSlotsGrid(view.get(), reader, *sub);
|
||||
read_slots_grid(view.get(), reader, *sub);
|
||||
}
|
||||
}
|
||||
return view;
|
||||
|
||||
Reference in New Issue
Block a user