Commit e330dc90 authored by Igor Kushnir's avatar Igor Kushnir
Browse files

Declare FileModificationCache as Q_MOVABLE_TYPE

0c3d13a8 removed this declaration
because in Qt 5 it is useful only for types stored in QVector,
QVarLengthArray and QList (and not QHash where FileModificationCache is
a mapped_type). However, QHash has been reimplemented in Qt 6 with some
optimizations enabled when both the key and the value type are
relocatable. Declaring FileModificationCache as Q_MOVABLE_TYPE makes no
difference now, but will benefit performance once KDevelop is ported to
Qt 6.
parent a4f80046
Pipeline #127584 passed with stage
in 32 minutes and 59 seconds
......@@ -27,7 +27,11 @@ struct FileModificationCache
QDateTime m_readTime;
QDateTime m_modificationTime;
};
}
Q_DECLARE_TYPEINFO(FileModificationCache, Q_MOVABLE_TYPE);
namespace
{
using FileModificationMap = QHash<IndexedString, FileModificationCache>;
using OpenDocumentRevisionsMap = QHash<IndexedString, int>;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment