summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodemarker.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-11-20 12:07:27 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-11-20 20:47:13 +0100
commit6f3c749f0e85c0bfd93a6d176fce2f25edf58962 (patch)
treeec0a44c0d7f8dfebc63932565811956aaf57f1fd /src/qdoc/cppcodemarker.cpp
parentb34a39904c8bb03ef37bb3d9278cde5cfb69f6ac (diff)
downloadqttools-6f3c749f0e85c0bfd93a6d176fce2f25edf58962.tar.gz
lupdate: Fix assertion in C++ parser
The parser reserves space for the the string yyWord: the length of the input string, e.g. the file. Later, it checks via Q_ASSERT whether the string is still attached to the initial buffer. In Qt6 we cannot rely anymore on QString staying attached to it's buffer for all operations. Therefore, the assertion cannot hold in all cases. Change the assertion to something weaker: ensure that the buffer size (the string's capacity) stays the same during the parser run. Pick-to: 6.0 6.0.0 Fixes: QTBUG-88647 Change-Id: I62ef2598b7023bc5bbc44aa477ac3bca60d6f355 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/qdoc/cppcodemarker.cpp')
0 files changed, 0 insertions, 0 deletions