Warning, /sdk/clazy/docs/checks/README-empty-qstringliteral.md is written in an unsupported language. File is not indexed.

0001 # empty-qstringliteral
0002 
0003 Suggests to use `QLatin1String("")` instead of `QStringLiteral()` and `QStringLiteral("")`.
0004 `QStringLiteral` should only be used where it would reduce memory allocations.
0005 
0006 Note that, counterintuitively, both `QStringLiteral().isNull()` and `QStringLiteral("").isNull()` are `false`,
0007 so do use exactly `QLatin1String("")` and not `QLatin1String()`, in both cases.
0008 
0009 If in your code `isNull()` and `isEmpty()` are interchangeable, then simply use `QString()`.