summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qstylehints.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-02-15 13:42:51 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-02-15 23:12:54 +0000
commita93ff2c2483b7d2f0c678aa3e52495e4cb36e9e1 (patch)
treec120d50e29bc7282ad8e147fea4ba27428a41aec /src/gui/kernel/qstylehints.cpp
parentc7c7cf636b07f8467f9028bf1e22ac9b87c1c7a7 (diff)
Reduce allocations in QSQLiteDriver::open()'s connection options parsing
- Use splitRef() instead of split(), avoiding small temporary QStrings. - Don't remove all spaces before splitting, trim strings at the QStringRef level later, where needed. This will reject nonsense strings like QSQL_ LITE _BUSY_ TI MEOUT= 1 2 3 that were previously (wrongly) accepted. - Use C++11 range-for loop. Change-Id: I875c4cf47b7a283ba55783f70c903bb9947e1cd7 Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Diffstat (limited to 'src/gui/kernel/qstylehints.cpp')
0 files changed, 0 insertions, 0 deletions