New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addresses some problems found while trying to use Pool::componentsByCategories #441
Conversation
Push before popping or the compiler complains
|
The patches make sense to me except for the |
Note qPrintable is the result of .toUtf8().constData(). We could consider splitting it into two loops, one converting to QByteArray and the other creating the |
|
Sure, but does that mean the original bug was indeed the |
Make sure the list is NULL-terminated as expected
Makes sure we don't use a string that is out of scope, keeps the UTF-8 formatted array until affer as_pool_get_components_by_categories is called.
|
If I don't have this commit I sometimes get this error message: I've changed the disputed commit to the slightly more verbose but correct and efficient version. |
|
Ping? |
Really strange! This does point at some kind of lifetime issue though.
I would have even been fine with the previous version, but I do need to understand the rationale behind a change (merging blindly without understanding the cause will eventually haunt you). Thank you for the patch! |
It was crashing because the list was not getting populated properly. This changes does so and addresses a couple of extra problems found while doing this as seen in their respective commits2.