QDoc: Extract parameter declaration locals in type matching


The parameter matching loop calls getParamDecl(i)->getOriginalType()
three times for the same iteration index. Extracting paramDecl and
paramType locals reduces repetition and prepares for upcoming
changes that need the type object for additional checks.

Pure refactor, no behavioral change.

Task-number: QTBUG-144620
Change-Id: Ia2f8b9c1d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit6da4d5f1ac3b266b9e4e0c8ae9f24b77beae4080
parentea88b29c232edbd2940de4f6b12985e120c8ea38
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeFri, 20 Mar 2026 15:47:03 +0100