summaryrefslogtreecommitdiffstats
path: root/src/gui/util/qvalidator.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2018-06-18 17:03:05 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2018-06-29 08:45:25 +0000
commitd5e5e15c1c817cbfa5da8f80f6fa0e08b913e82e (patch)
tree4963ef2c1309f0d8e922a3231fad2d3fc472ba06 /src/gui/util/qvalidator.cpp
parentce6c4349f7faca167f09f910952de9798352484e (diff)
Tracegen: code tidies
* Do not rely on the side-effect that QTextStream returns _null_ strings (rather than empty strings) to signal EOF; just check for it, making the code easier to read. * Scope a variable properly * Use the char-based functions, rather than string-based functions (e.g. QString::split(QChar), not QString::split(QString)) when we're actually passing just one character * Make error cases more verbose Change-Id: I415773a60ea1b9013193a9a77e52655a6459047d Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/gui/util/qvalidator.cpp')
0 files changed, 0 insertions, 0 deletions