Adjust protocolgen to correctly compare QSharedPointers
We want to compare the data in the QSharedPointers, not the pointer addresses.