diff options
| author | Shauren <shauren.trinity@gmail.com> | 2023-04-06 17:46:58 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2023-04-06 17:46:58 +0200 |
| commit | 7b310802583a96dd32841bc396a119fca833e2d4 (patch) | |
| tree | 990da6afe067b13ad0f24e33ed33c15adc5ad55d /src/server/game/Texts | |
| parent | 74c280da9eac16c5d4a875ff2ea5aa30034ff1dd (diff) | |
Core/Misc: Modernize code a bit by replacing std::tie with either structured bindings or operator<=>
Diffstat (limited to 'src/server/game/Texts')
| -rw-r--r-- | src/server/game/Texts/CreatureTextMgr.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/game/Texts/CreatureTextMgr.h b/src/server/game/Texts/CreatureTextMgr.h index 4f6522147d0..b50039ac3a4 100644 --- a/src/server/game/Texts/CreatureTextMgr.h +++ b/src/server/game/Texts/CreatureTextMgr.h @@ -73,10 +73,7 @@ struct CreatureTextId { CreatureTextId(uint32 e, uint32 g, uint32 i) : entry(e), textGroup(g), textId(i) { } - bool operator<(CreatureTextId const& right) const - { - return std::tie(entry, textGroup, textId) < std::tie(right.entry, right.textGroup, right.textId); - } + friend std::strong_ordering operator<=>(CreatureTextId const& left, CreatureTextId const& right) = default; uint32 entry; uint32 textGroup; |
