Clarify effects parsing code to fix static analyzer report


Although most likely a false positive, the report correctly indicates
that the logic was error-prone as written. Rewrite to make the
avoidance of nullptr dereferencing explicit.

As a drive-by, degrade severity of the warning messages from the
effetcs parsing function. Since the parsing is very rudimentary, the
issues encountered may likely be just limitations in the parser, not
problems in the source file.

Pick-to: 6.11
Change-Id: I4dfddb7b4590b2ba96972aa6e4bc8c0315f56892
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
commit2a4d4b10d984820a1e817eacb51c4c2a88198373
parent48cbcd590ad59edddcacc5cf7e8a3c8778bde959
authorEirik Aavitsland <eirik.aavitsland@qt.io>
committerEirik Aavitsland <eirik.aavitsland@qt.io>
commit timeWed, 11 Mar 2026 09:23:33 +0100