diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-10-13 09:06:58 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-10-13 16:37:07 +0000 |
commit | f9bf737d74c2493f7a535048cb4992d3e4cd3c99 (patch) | |
tree | c86f65b9bbe030a0225d0a11d5924fb6e9ada832 /examples/widgets/itemviews/simpletreemodel | |
parent | dab4877a0a6ad755483a8e47205112a247058fef (diff) |
Examples/Doc snippets: Fix single-character string literals.
Use character literals where applicable.
Change-Id: I79fa5018f05735201ae35ee94ba0d356fcad1056
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'examples/widgets/itemviews/simpletreemodel')
-rw-r--r-- | examples/widgets/itemviews/simpletreemodel/treemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/itemviews/simpletreemodel/treemodel.cpp b/examples/widgets/itemviews/simpletreemodel/treemodel.cpp index aaa4685b27..f5cd1a160e 100644 --- a/examples/widgets/itemviews/simpletreemodel/treemodel.cpp +++ b/examples/widgets/itemviews/simpletreemodel/treemodel.cpp @@ -180,7 +180,7 @@ void TreeModel::setupModelData(const QStringList &lines, TreeItem *parent) while (number < lines.count()) { int position = 0; while (position < lines[number].length()) { - if (lines[number].mid(position, 1) != " ") + if (lines[number].at(position) != ' ') break; position++; } |