diff options
| author | Sami Shalayel <sami.shalayel@qt.io> | 2025-06-05 09:20:24 +0200 |
|---|---|---|
| committer | Sami Shalayel <sami.shalayel@qt.io> | 2025-06-06 13:04:40 +0200 |
| commit | f2e8a9b49f2c1bd8d1dc6bc424d6148173f9a142 (patch) | |
| tree | d8369291d39dae080919e52f42c565146ad1557b /src/qmlworkerscript/qquickworkerscript.cpp | |
| parent | cb1eaacd1955f3dc991b5a805dc45f0609ccbdec (diff) | |
qmlformat: make AstComments::ensureCommentForNode private
The method returns a reference that is invalidated on further insertion
of comments, like calling ensureCommentForNode() multiple time and using
the returned values for example. This might lead to more memory errors
like QTBUG-137413.
Make the method private to avoid further misuses.
Also add a comment on commentForNode() about the validity of the returned
pointer.
Task-number: QTBUG-137413
Change-Id: Ic785de96b8e8ff2ed108404c20b57296a91fdb93
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlworkerscript/qquickworkerscript.cpp')
0 files changed, 0 insertions, 0 deletions
