refactor: unglob std::wstring

This commit is contained in:
Tropical
2026-03-06 11:50:22 -06:00
parent 41db813a6d
commit cdc08700e4
581 changed files with 2156 additions and 2154 deletions
+1 -1
View File
@@ -428,7 +428,7 @@ void Inventory::setItem(unsigned int slot, std::shared_ptr<ItemInstance> item)
#ifdef _DEBUG
if(item!=NULL)
{
wstring itemstring=item->toString();
std::wstring itemstring=item->toString();
app.DebugPrintf("Inventory::setItem - slot = %d,\t item = %d ",slot,item->id);
//OutputDebugStringW(itemstring.c_str());
app.DebugPrintf("\n");
+1 -1
View File
@@ -392,7 +392,7 @@ std::shared_ptr<ItemInstance> RepairMenu::quickMoveStack(std::shared_ptr<Player>
return clicked;
}
void RepairMenu::setItemName(const wstring &name)
void RepairMenu::setItemName(const std::wstring &name)
{
this->itemName = name;
if (getSlot(RESULT_SLOT)->hasItem())
+2 -2
View File
@@ -35,7 +35,7 @@ public:
private:
int repairItemCountCost;
wstring itemName;
std::wstring itemName;
std::shared_ptr<Player> player;
public:
@@ -51,5 +51,5 @@ public:
void removed(std::shared_ptr<Player> player);
bool stillValid(std::shared_ptr<Player> player);
std::shared_ptr<ItemInstance> quickMoveStack(std::shared_ptr<Player> player, int slotIndex);
void setItemName(const wstring &name);
void setItemName(const std::wstring &name);
};