┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dolphinitemcategorizer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinitemcategorizer.cpp b/src/dolphinitemcategorizer.cpp
index 88e6733c9..38d0e2c16 100644
--- a/src/dolphinitemcategorizer.cpp
+++ b/src/dolphinitemcategorizer.cpp
@@ -114,7 +114,8 @@ QString DolphinItemCategorizer::categoryForItem(const QModelIndex& index,
{
bool validCategory = false;
- const QChar* currA = data.toString().toUpper().unicode(); // iterator over a
+ const QString str(data.toString().toUpper());
+ const QChar* currA = str.unicode();
while (!currA->isNull() && !validCategory) {
if (currA->isLetter())
validCategory = true;