diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-31 14:05:28 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-31 14:05:28 +0000 |
commit | 96521495f8c0070537be42c97f8fcbe55ec3990f (patch) | |
tree | 95f73fa059c49ee71510e90a93f344ce46731148 /src/core/cvar.h | |
parent | 32317145166988e5f9c65395bfc027aa2d32ed0e (diff) |
most love valgrind
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); |