[Interest] QObject::dumpObjectTree() & const

Andy asmaloney at gmail.com
Mon Oct 3 02:05:49 CEST 2016


Why aren't QObject::dumpObjectTree() and QObject::dumpObjectInfo() const?
Surely they shouldn't be modifying the state of the object.

I occasionally add them to my own debug dump() methods which are const
(ensures no modification is happening accidentally) and have to work around
this each time.

Obviously not a huge deal, just curious if anyone knows why that decision
was made.

Thanks!

---
Andy Maloney  //  https://asmaloney.com
twitter ~ @asmaloney <https://twitter.com/asmaloney>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20161002/992b8b41/attachment.html>


More information about the Interest mailing list