Used a macro for UUID generation, switched from C-style casts to reinterpret_cast, renamed callback#359
Conversation
…terpret_cast, renamed callback
|
Looks good to me! 2 small details: The macro is fine. But it would be even better if we find a way to write a constexpr method to replace the macro :) |
I'd see if it can be done in a future PR, if you wouldn't mind? |
Yes, of course :) |
|
The Also the I can open a new PR with these changes if you're interested. I was going to suggest them as possibilities before the PR got merged. |
|
@jonvmey I would certainly like to see those changes. This PR was intended from the start to be a small incremental cleanup and I would certainly like to get rid of those |
I tried to separate these changes a bit more, but couldn't.
The PR makes some minor improvements to the music watchapp:
-O0very likely)const-ified the value getters for more safety(It should remain functionally identical, at least my tests with GB didn't show any differences)
Let me know if I should strip out some of these changes.
I would also really like to know if the macro is okay.