-
Notifications
You must be signed in to change notification settings - Fork 8
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
Use new jsoncpp reader #4
Conversation
Json::Reader is deprecated and will fail polybar compilation Fixes polybar/polybar#741
4e9cd24
to
c5d73cb
Compare
I have tested this a little but since I do not use i3 as my regular workspace, the test was in no way comprehensive. But I think the jsoncpp people made sure the |
Actual fix was made in polybar/i3ipcpp#4 this only updates the submodule Fixes polybar#741 Fixes polybar#871
Totally forgot about testing this before merging, but this also works with jsoncpp 1.7.7 that ships with i3ipcpp, so it should also work for all versions in between (hopefully) |
Actual fix was made in polybar/i3ipcpp#4 this only updates the submodule Fixes #741 Fixes #871
} | ||
{ \ | ||
Json::CharReaderBuilder b; \ | ||
Json::CharReader* reader(b.newCharReader()); \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this leak memory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, probably does. I'm gonna open a PR
Json::Reader is deprecated and will fail polybar compilation
EDIT: I still have to test if the new function call still works the same
Fixes polybar/polybar#741 and polybar/polybar#871