QDoc: Compute nonfunctionList() on each call
Aggregate::nonfunctionList() lazily builds and caches a filtered, sorted
copy of the child list on first call. The memoization hides the
computation inside an accessor that looks suspiciously like a plain
getter, and the missing const forces a `const_cast` on the receiver in
`TagFileWriter`.
Make the method const and have it compute and return a fresh sorted copy
on each call, and drop the cached member. At the existing call sites,
the node tree has been fully resolved and the properties used by
`Node::nodeLessThan` are stable, so the returned ordering is identical
to the previously cached result. There is no output change.
Call sites take the list by value, which makes the ownership of
the copy explicit, and `TagFileWriter` can call the method without a
cast.
Task-number: QTBUG-150880
Change-Id: Ica1e01f5e8310c1283c73205089379f5dbec89aa
Reviewed-by: David Boddie <david.boddie@qt.io>