qt6_add_statecharts: Ensure initialization of outfiles variable


The outfiles variable was never initialized and could potentially hold
values from an outer scope.

Pick-to: 6.2 6.3 6.4
Change-Id: I1ff1b4e62553884ca82658106fbdaacbfa99bb2b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commitb7134c8249c3bf5877debd90294240ec34eb2936
parent2a387a1b3d160a4b287a6a521961f20a046ba6e7
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeWed, 6 Jul 2022 14:56:22 +0200