Editor: Convert QVector over to QList

In Qt 6 QVector is now a typedef alias for QList, so we can convert these over
to make the semantics explicit.
This commit is contained in:
Lioncache
2025-11-30 15:27:28 -05:00
parent 0e56aa3fa8
commit 43eae548ac
28 changed files with 58 additions and 50 deletions

View File

@@ -8,7 +8,7 @@ void IEditPropertyCommand::SaveObjectStateToArray(std::vector<char>& rVector)
CVectorOutStream MemStream(&rVector, EEndian::SystemEndian);
CBasicBinaryWriter Writer(&MemStream, CSerialVersion(IArchive::skCurrentArchiveVersion, 0, mpProperty->Game()));
QVector<void*> DataPointers;
QList<void*> DataPointers;
GetObjectDataPointers(DataPointers);
for (void* pData : DataPointers)
@@ -22,7 +22,7 @@ void IEditPropertyCommand::RestoreObjectStateFromArray(std::vector<char>& rArray
{
CBasicBinaryReader Reader(rArray.data(), rArray.size(), CSerialVersion(IArchive::skCurrentArchiveVersion, 0, mpProperty->Game()));
QVector<void*> DataPointers;
QList<void*> DataPointers;
GetObjectDataPointers(DataPointers);
for (void* pData : DataPointers)
@@ -100,10 +100,10 @@ bool IEditPropertyCommand::mergeWith(const QUndoCommand *pkOther)
if (pkCmd && pkCmd->mpProperty == mpProperty)
{
QVector<void*> MyPointers;
QList<void*> MyPointers;
GetObjectDataPointers(MyPointers);
QVector<void*> TheirPointers;
QList<void*> TheirPointers;
pkCmd->GetObjectDataPointers(TheirPointers);
if (TheirPointers.size() == MyPointers.size())