QTypedJson: fix HasWalk-template magic


Fix a HasWalk-template magic mistake: std::declval is supposed to be
called to do anything useful.

Task-number: QTBUG-149120
Pick-to: 6.12 6.11
Change-Id: I52c87c4990f6682297617b230c4640db4044e145
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commitbe054f7edc37dfc679975e70ebc9f5c0fe402b20
parent70be750622bbe757e151227bbc99f2564200ad2f
authorSami Shalayel <sami.shalayel@qt.io>
committerSami Shalayel <sami.shalayel@qt.io>
commit timeThu, 13 Aug 2026 15:20:50 +0000