Avoid comparing Microsoft::WRL::ComPtr instances with QCOMPARE


After the introduction of QDebug::toBytes, comparing instances of
Microsoft::WRL::ComPtr with QCOMPARE won't compile. As a workaround,
this patch replaces QCOMPARE with QVERIFY and ComPtr::operator==.

Comparing raw COM pointers directly can require pointers of the same
type, so we lean on the ComPtr::operator== for this.

Amends: b57fac818b7fe028dc61f1196cfda397233edffe

Pick-to: 6.8
Task-number: QTBUG-127510
Change-Id: I959feb7d6b2631e2ad75917121ce7ca6c575c6d6
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
commitf0ddab53033aa72d63c377289d77e00644ce4097
parentdbc03f85563a5f752e68a57a27c6e316d037ab35
authorJøger Hansegård <joger.hansegard@qt.io>
committerFabian Kosmale <fabian.kosmale@qt.io>
commit timeWed, 24 Jul 2024 13:42:52 +0000