Skip to content

Check if XML reader stopped because of an error.#3034

Merged
danmar merged 1 commit into
cppcheck-opensource:mainfrom
matzeschmid:fix-LibraryData-XmlReader-Error
Jan 10, 2021
Merged

Check if XML reader stopped because of an error.#3034
danmar merged 1 commit into
cppcheck-opensource:mainfrom
matzeschmid:fix-LibraryData-XmlReader-Error

Conversation

@matzeschmid
Copy link
Copy Markdown
Contributor

Member function atEnd() of class QXmlStreamReader returns true if an error occured and this breaks the XML reader loop.
But this error will not be visible to the user and leaves CppcheckLibraryData instance in incomplete state.

@danmar danmar merged commit cdc0ba3 into cppcheck-opensource:main Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants