aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qstring-ref
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2017-03-20 11:23:29 +0000
committerSergio Martins <smartins@kde.org>2017-03-20 11:23:29 +0000
commita29aac041e1b6a9ad8ed83da9d66254ba8676c33 (patch)
tree5602cb01bd2693321fff36936f0aa5bbd6331d53 /tests/qstring-ref
parentdcc6a8500bd079fe2a0d62a19fe177bc892ac897 (diff)
qstring-ref: There's no QString::trimmedRef() method
BUG: 376737
Diffstat (limited to 'tests/qstring-ref')
-rw-r--r--tests/qstring-ref/bug376737.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qstring-ref/bug376737.cpp b/tests/qstring-ref/bug376737.cpp
index 24858b22..7d0575ed 100644
--- a/tests/qstring-ref/bug376737.cpp
+++ b/tests/qstring-ref/bug376737.cpp
@@ -8,4 +8,8 @@ void test()
QObject o;
o.setProperty("size", line.mid(7).trimmed()); // OK
QString attributes = line.mid(13).trimmed(); // OK
+
+ QString comment;
+ if (!comment.trimmed().isEmpty()) { // OK
+ }
}