CStateMessageModel: Make use of push_back over operator<<
This commit is contained in:
parent
fe679e5479
commit
9393aa7a84
|
@ -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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue