summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/qsharedpointer_and_qwidget/tst_qsharedpointer_and_qwidget.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-01-27 12:33:46 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2022-01-18 16:23:56 +0100
commit755b0aa681c203e6677430180a9cc6d103650e15 (patch)
treeb24b8c43a5a18dad2ba9bbbb4aa26e09ef312852 /tests/auto/other/qsharedpointer_and_qwidget/tst_qsharedpointer_and_qwidget.cpp
parentf2230ea1a6c83bade142eca0a696dc1e219d427f (diff)
Turn a condition into a lambda to save needless evaluation
The public suffix list scanner's utf8encode()'s main loop always worked out whether a character is a hex digit, even when it didn't need to know. Package the computation in a lambda and only test it when it is needed. Also assert non-empty input generates non-empty output. Change-Id: Iaf48aad382624e421cea9c9cdb8bba5fc47b1596 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
Diffstat (limited to 'tests/auto/other/qsharedpointer_and_qwidget/tst_qsharedpointer_and_qwidget.cpp')
0 files changed, 0 insertions, 0 deletions