QDoc: Remove const_cast from member extraction
The member extraction code uses const_cast to pass a const
aggregate pointer to the section constructor. This workaround
was necessary because the section infrastructure required
mutable pointers, even for read-only operations.
With the section constructor now accepting const pointers, the
extraction code passes its const aggregate directly. This removes
the last const_cast workaround from the IR extraction pipeline,
letting the compiler verify the read-only contract end-to-end.
Fixes: QTBUG-145109
Change-Id: I44c0928fda63a0f7f97b238a0f880ee0042a0e14
Reviewed-by: Topi Reinio <topi.reinio@qt.io>