diff options
Diffstat (limited to 'src/core/cvar.h')
-rw-r--r-- | src/core/cvar.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/cvar.h b/src/core/cvar.h index b8e406c..d934872 100644 --- a/src/core/cvar.h +++ b/src/core/cvar.h @@ -27,7 +27,7 @@ public: enum Flags {Archive=1, ReadOnly=2, Game=4, Info=8}; /// create a new variable - Cvar(const char *name, unsigned int flags = 0); + Cvar(const char *name, const unsigned int flags = 0); /*----- inspectors ------------------------------------------------ */ @@ -70,26 +70,26 @@ public: * its value will not be changed. If the cvar does not exist, * it will be created */ - static Cvar *get(const char *name, const char *value, unsigned int flags=0); + static Cvar *get(const char *name, const char *value, const unsigned int flags=0); /// get a cvar value from the registry /** If the a cvar with the given name already exists in the registry, * its value will not be changed. If the cvar does not exist, * it will be created */ - static Cvar *get(const char *name, float value, unsigned int flags=0); + static Cvar *get(const char *name, float value, const unsigned int flags=0); /// set a cvar value /** If the a cvar with the given name already exists in the registry, * its value will be replaced */ - static Cvar *set(const char *name, const char *value, unsigned int flags=0); + static Cvar *set(const char *name, const char *value, const unsigned int flags=0); /// set a cvar value /** If the a cvar with the given name already exists in the registry, * its value will be replaced */ - static Cvar *set(const char *name, float value, unsigned int flags=0); + static Cvar *set(const char *name, float value, const unsigned int flags=0); /// delete a cvar from the registry static void unset(const char *name); |