CStateMessageModel: Make use of push_back over operator<<

This commit is contained in:
Lioncash 2020-07-10 15:45:12 -04:00
parent fe679e5479
commit 9393aa7a84
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ public:
for (uint32 iState = 0; iState < pGame->NumStates(); iState++) for (uint32 iState = 0; iState < pGame->NumStates(); iState++)
{ {
SState State = pGame->StateByIndex(iState); SState State = pGame->StateByIndex(iState);
mEntries << SEntry(State.ID, TO_QSTRING(State.Name)); mEntries.push_back(SEntry(State.ID, TO_QSTRING(State.Name)));
} }
} }
@ -81,7 +81,7 @@ public:
for (uint32 iMsg = 0; iMsg < pGame->NumMessages(); iMsg++) for (uint32 iMsg = 0; iMsg < pGame->NumMessages(); iMsg++)
{ {
SMessage Message = pGame->MessageByIndex(iMsg); SMessage Message = pGame->MessageByIndex(iMsg);
mEntries << SEntry(Message.ID, TO_QSTRING(Message.Name)); mEntries.push_back(SEntry(Message.ID, TO_QSTRING(Message.Name)));
} }
} }