TaskTree: Add TreeStorageBase::operator==

Change-Id: I50144978b86f2e5fa89fc35c687b64ed102803e6
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2022-12-04 08:31:14 +01:00
parent 162c8f71d3
commit cb8d4797b7
2 changed files with 17 additions and 9 deletions

View File

@@ -31,6 +31,10 @@ class QTCREATOR_UTILS_EXPORT TreeStorageBase
{
public:
bool isValid() const;
friend bool operator==(const TreeStorageBase &first, const TreeStorageBase &second)
{ return first.m_storageData == second.m_storageData; }
friend bool operator!=(const TreeStorageBase &first, const TreeStorageBase &second)
{ return first.m_storageData != second.m_storageData; }
protected:
using StorageConstructor = std::function<void *(void)>;