Skip to content

Constify inline functions in libinput-private

Konstantin Kharlamov requested to merge Hi-Angel/libinput:master into master

Just a small refactoring — it's often great to know, whether a function modifies its arguments or not.

There's definitely more work to do, but I stumbled upon that helpers returning a pointer are break the constantness contract.

In retrospective, I think such helpers could be replaced with macros, I'll probably give it another try later.

Merge request reports