QDoc: Make Sections own their section vectors


Sections stores its section data in static mutable vectors shared
across all instances. Every constructor call modifies this global
state, and the destructor must carefully clear it so the next
instance starts fresh. This creates fragile coupling between object
lifetime and shared state, making the code error-prone and
fundamentally incompatible with concurrent documentation generation.

Each Sections instance now owns its section vectors as regular
member data. Callers no longer need to know the aggregate's type
to pick the correct accessor, since the constructor already selects
the right section layout. The custom destructor and manual clearing
become unnecessary, and copy/move operations are explicitly
disabled since Sections instances should never be duplicated.

Fixes: QTBUG-144314
Change-Id: I1c6f39cf69da2db7fff497dbae6ef41f8c7404df
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commita528ebe9783078e028b0584b40944eb2197f360c
parent0e9edcc2d58964507ce969823ceb3ce19235529e
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeWed, 18 Feb 2026 16:16:22 +0100