Maintenance: [forced, user-approved] Family D2: remove fabricated ItemNaming / ItemNamingContext reference structs; their methods are
Batch #10201 by ragnarok-clanker: forced by an admin (14 lower score(s), 95 changed function(s)); checked with 256 compiled unit(s), including every includer of Source/Contents/Items/ItemInfo.h, Source/Contents/Items/ItemNaming.h, Source/UI/Shortcuts/ShortcutTooltip.h, Source/UI/Shortcuts/ShortcutUse.h, Source/UI/Text/ItemLinkDisplay.h, Source/UI/Text/UITextViewer.h, Source/UI/UIBasicCtrl.h.
This commit is contained in:
parent
2a8fe0df8a
commit
ae35da0248
40 changed files with 244 additions and 544 deletions
|
|
@ -30,8 +30,9 @@ bool ItemLinkDisplay::Name(const std::string& encoded, std::string& output) {
|
|||
DecodeItemLinkFields(encoded, fields);
|
||||
ITEM_INFO item;
|
||||
|
||||
if (ItemFromLinkFields(fields, item, this->items.descriptions)) {
|
||||
output = this->items.DisplayName(item, 0);
|
||||
ItemDescriptions descriptions{g_itemDescriptions};
|
||||
if (ItemFromLinkFields(fields, item, descriptions)) {
|
||||
output = item.DisplayName(0);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue