Fix a Xcode warning

Hi David,

I've just fixed a warning from Xcode that the function hasn't been declared before. Also, I've renamed the const to make the class a bit cleaner. Not big changes here but I was just feeling like fixing it.

Hope you like it,
Laurin