Check maxNamesOut in MetaObjectGenerator::readFuncsInfo


Don't assert when qaxTypeInfoNames() returns an empty list by checking
if there is an element in there before trying to access it.
As a drive-by cleanup the code a bit by moving the parameters to the
places where they are really needed.

Pick-to: 6.10 6.9
Change-Id: Ie320fbc01b37e254023a94200c3d5ff02b8beeb6
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
commitfc3223b8b986272dd27cf3d4f377af9f0308565c
parentdccb156b5d1c23252ae3faec5e57c59fab5286c9
authorDaniel Čejchan <czdanol@gmail.com>
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>
commit timeMon, 6 Oct 2025 17:55:28 +0000