diff options
author | Richard Weickelt <richard@weickelt.de> | 2020-08-13 13:37:11 +0200 |
---|---|---|
committer | Richard Weickelt <richard@weickelt.de> | 2020-08-14 07:58:34 +0000 |
commit | 0820c2d3ca6ac2e01c1d68945beeba45f4212658 (patch) | |
tree | 55c3318e64077f5737020cd3c67c4ef5ec82fa5c /src | |
parent | f456797d9b3fa5826a31631714a1c605de006371 (diff) |
Avoid wrong-typed temporary assignment to probe property
The code assigns a temporary string to the cflags and libs properties
which are both declared as stringList. Later, it reads these properties,
expects string values and converts them into arrays.
While this seems to work with the current QtScript engine, it won't with
the QML-based evaluation engine. That is because any read access to a
item property will return exactly the declared type or undefined. In
this particular case, we would assign the temporary string to a
stringList property which the engine would automatically convert into a
stringList (array) when reading and thus, calling split() would result
in an error.
Change-Id: I53e0c51ee042f787e0d444cdc6cfe4b8820e46ac
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions