[clazy] Also check for QStringRef::trimmed()

Review Request #129602 - Created Dec. 2, 2016 and submitted

Information
Christian Ehrlicher
clazy
Reviewers
smartins

QStringRef also has (since Qt5.1) a trimmed() function. This can be used to avoid useless QString allocations within foo.mid(6).trimmed() -> foo.midRef(6).trimmed().toString()

Compiled my sources with this new check and found no problems (but some places where I should use left/mid/rightRef)

Sergio Martins
Christian Ehrlicher
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 012dcb71a8b21d4877acb5b697a744eb230d3b75 by Christian Ehrlicher to branch master.
Loading...