Posted By: MasterQ32
Changing char* to const char* in SDK? - 10/05/14 15:56
Hey!
I'm currently working with the Engine SDK and i'm wondering why functions like bmap_create need to have a char* parameter?
It's really annoying as i also need to cast string literals to char*:
Much better would be the "correct" version with const char* instead of char*.
I don't think those methods have any sideffects on the parameter, right? Would be nice if this could be expressed in the method call itself.
Regards
Felix
I'm currently working with the Engine SDK and i'm wondering why functions like bmap_create need to have a char* parameter?
It's really annoying as i also need to cast string literals to char*:
Code:
BMAP *bmp = bmap_create((char*)"filename.png");
Much better would be the "correct" version with const char* instead of char*.
I don't think those methods have any sideffects on the parameter, right? Would be nice if this could be expressed in the method call itself.
Regards
Felix