path: root/src/corelib/tools/tools.pri
diff options
authorThiago Macieira <>2014-07-28 23:31:32 -0700
committerThiago Macieira <>2014-08-19 03:39:57 +0200
commit54da2b2911ace652dbd2c8ea852c5b8c47ab09c8 (patch)
tree2b3134b8540f78fbb8f205772fa8f65c6cc67de4 /src/corelib/tools/tools.pri
parent19dd9a0ebd570ac134e115f2339912a1015ecde5 (diff)
Simplify and unify Q{ByteArray,String{,Ref}}::{simplify,trimmed}
As a side effect, QString::simplified() will always return a detached copy, even if it's the same contents. QStringRef::trimmed() can use the same calculation algorithm but can't use the trimmed_helper() template function due to its lack of a constructor taking begin pointer and size (std::string_view could do it). That constructor can't be added because QStringRef always refers to an existing QString, not to data in memory. Change-Id: Ib966c1741819c68c6bac5fcbb00f8ac818b3ccab Reviewed-by: Olivier Goffart <> Reviewed-by: Jędrzej Nowacki <> Reviewed-by: Marc Mutz <>
Diffstat (limited to 'src/corelib/tools/tools.pri')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/tools.pri b/src/corelib/tools/tools.pri
index af0ed228bd..adda91b739 100644
--- a/src/corelib/tools/tools.pri
+++ b/src/corelib/tools/tools.pri
@@ -57,6 +57,7 @@ HEADERS += \
tools/qsize.h \
tools/qstack.h \
tools/qstring.h \
+ tools/qstringalgorithms_p.h \
tools/qstringbuilder.h \
tools/qstringiterator_p.h \
tools/qstringlist.h \