WootingKb / wooting-rgb-sdk

Customize colors on Wooting Keyboard #WootDev
Mozilla Public License 2.0
62 stars 15 forks source link

Use void instead of empty parameter list #35

Closed ghost closed 3 years ago

ghost commented 3 years ago

Empty parameter lists accept any amount of parameters, allowing for incorrect usage of a function. Passing any parameters to a void parameter list results in compilation error, making such incorrect usage impossible.

ghost commented 3 years ago

Whoah, that was fast! Thanks!

PastaJ36 commented 3 years ago

Haha yeah, just happened to look at my notifications. Thanks!