diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-11-22 13:35:36 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-11-23 17:20:00 +0100 |
commit | 16683799681578d076c46b71f77d326ac304cc6e (patch) | |
tree | fc1264c6e6bbed9d671222628360629752f63ca3 /src/qml/qml/qqmltypeloaderqmldircontent.cpp | |
parent | b7030c2efb90fd1109166d8d476aeab7194c41e1 (diff) |
QQmlDirParser: Fix lifecycle management
Remove pointless ctor and dtor, provide a clear() method that actually
clears everything, call that explicitly where needed.
Task-number: QTBUG-30467
Change-Id: I67c632af3a7a76d1d1a706a5ab6d1c446240405c
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmltypeloaderqmldircontent.cpp')
-rw-r--r-- | src/qml/qml/qqmltypeloaderqmldircontent.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmltypeloaderqmldircontent.cpp b/src/qml/qml/qqmltypeloaderqmldircontent.cpp index 8e983db756..c4e6d86f0d 100644 --- a/src/qml/qml/qqmltypeloaderqmldircontent.cpp +++ b/src/qml/qml/qqmltypeloaderqmldircontent.cpp @@ -76,6 +76,7 @@ void QQmlTypeLoaderQmldirContent::setContent(const QString &location, const QStr { m_hasContent = true; m_location = location; + m_parser.clear(); m_parser.parse(content); } |