Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.5.0
-
None
-
All
-
5930a2d314d158f67bf3bf2bd940d7b67731ebde (qtbase/5.5, 12.3.2015, 5.5 ∝)
Description
#include <QString> #include <QDebug> int main(int argc, char *argv[]) { QString s = QLatin1String(QT_VERSION_STR) + QLatin1String("\nbla\nbla"); qDebug() << s << "simplified:" << s.simplified(); return 0; }
produces:
"5.4.2
bla
bla" simplified: "5.4.2 bla bla"
"5.5.0\nbla\nbla" simplified: "5.5.0\nbla\nbla"
The check
if (newlen == str.size()) { // nothing happened, return the original
introduced by https://codereview.qt-project.org/#/c/90980/ does not catch this, apparently.
Attachments
Issue Links
- is required for
-
QTBUG-44653 Issues to be fixed before Qt 5.5 Beta
- Closed
For Gerrit Dashboard: QTBUG-44936 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
107819,5 | Track modifications of white space in QString::simplified(). | 5.5 | qt/qtbase | Status: MERGED | -2 | 0 |