Warning, /sdk/clazy/docs/checks/README-qstring-ref.md is written in an unsupported language. File is not indexed.
0001 # qstring-ref 0002 0003 Finds places where `QString::fooRef()` should be used instead of `QString::foo()`, to avoid temporary heap allocations. 0004 0005 #### Example 0006 0007 str.mid(5).toInt(ok) // BAD 0008 0009 str.midRef(5).toInt(ok) // GOOD 0010 0011 Where `mid` can be any of: `mid`, `left`, `right`. 0012 And `toInt()` can be any of: `compare`, `contains`, `count`, `startsWith`, `endsWith`, `indexOf`, `isEmpty`, `isNull`, `lastIndexOf`, `length`, `size`, `to*`, `trimmed` 0013 0014 #### FixIts 0015 0016 This check supports a fixit to rewrite your code. See the README.md on how to enable it.