aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2019-01-11 19:54:05 +0000
committerSergio Martins <smartins@kde.org>2019-01-11 19:54:05 +0000
commitefa0980c46063fe2426042df462b35e8b404110e (patch)
treef49e84ec49344a96b6f7b02f9582e712f57d33d3
parent75c097b118931e2d8f3a66cc12bf7045ee548e81 (diff)
Fix typo in readme
-rw-r--r--docs/checks/README-empty-qstringliteral.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/checks/README-empty-qstringliteral.md b/docs/checks/README-empty-qstringliteral.md
index fe8ba4ef..bf311c99 100644
--- a/docs/checks/README-empty-qstringliteral.md
+++ b/docs/checks/README-empty-qstringliteral.md
@@ -5,5 +5,5 @@ The later causes unneeded code bloat.
You should use `QString()` instead of `QStringLiteral()` and `QStringLiteral("")`.
-Note: Beware that `QString().isNull()` is `true` while both `QStringLiteral().isNull()` and `QStringLiteral("").isNull()` are `false`.
+Note: Beware that `QString().isNull()` is `true` while both `QStringLiteral().isEmpty()` and `QStringLiteral("").isNull()` are `false`.
So be sure not to introduce subtle bugs when doing such replacements. In most cases it's simply a matter of using `isEmpty()` instead, which is `true` for all cases above.