Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Add io device closing management in parser#76

Open
xbroquer wants to merge 1 commit into
flavio:masterfrom
xbroquer:master
Open

Add io device closing management in parser#76
xbroquer wants to merge 1 commit into
flavio:masterfrom
xbroquer:master

Conversation

@xbroquer
Copy link
Copy Markdown

Hi,

Today QJson library always closes the QIODevice at the end of parsing.
This may cause problems with volatile data that are destroyed when the I/O device is closed (i.e. network connection, temporary file, memory buffer).

To prevent this, I added a prototype to the parser with a boolean to force the device to be closed after parsing.
This does not break the old behavior and allows the client to choose if the file must be closed or not.

Is it possible to merge this change in the mainline ?
Thanks,
Xavier.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant