aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-06-21 09:30:54 +0200
committerMitch Curtis <mitch.curtis@qt.io>2018-06-21 07:55:28 +0000
commitd5fbbddd7794265f24d392d33c4874ac756cb9c9 (patch)
treeae39ab04ad28498316ad69066b605a6270056749 /tests/auto
parent6cf6594aa7bb6cdb84d0fca9df6c099b14d2affc (diff)
QQuickSpinBox: Fix "function expressions as statements" warning
Surround the function with parentheses as suggested: QWARN : tst_Snippets::verify(qtquickcontrols2-spinbox-custom) Warning: Using function expressions as statements in scripts is not compliant with the ECMAScript specification: "function(value, locale) { return Number(value).toLocaleString(locale, ..." This will throw a syntax error in Qt 5.12. If you want a function expression, surround it by parentheses. Change-Id: I39df9af9b3dc62ffaf6fcba071c04c8933698c07 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions