Make Digest32 implicitly shared class

This commit is contained in:
Vladimir Golovnev (Glassez)
2022-01-23 18:44:59 +03:00
parent 9553afc3c2
commit c40408b337
2 changed files with 22 additions and 12 deletions

View File

@@ -85,3 +85,6 @@ namespace BitTorrent
}
Q_DECLARE_METATYPE(BitTorrent::TorrentID)
// We can declare it as Q_MOVABLE_TYPE to improve performance
// since base type uses QSharedDataPointer as the only member
Q_DECLARE_TYPEINFO(BitTorrent::TorrentID, Q_MOVABLE_TYPE);