diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-26 02:48:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-26 02:48:32 +0300 |
commit | ab596ef3f4215f792feaa9ca1dfe5acb74c67328 (patch) | |
tree | ac5a4f31e2fa9c784d7de8d817654d47e21ccac2 /src/defaults.cpp | |
parent | 399f264360f6e8dfa31d0c3ff7d72aad8033888d (diff) | |
download | plus-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.gz plus-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.bz2 plus-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.xz plus-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.zip |
Add const to some classes.
Diffstat (limited to 'src/defaults.cpp')
-rw-r--r-- | src/defaults.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/defaults.cpp b/src/defaults.cpp index c7bf8bbb2..92c11164e 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -31,17 +31,17 @@ #include "debug.h" -VariableData* createData(int defData) +VariableData* createData(const int defData) { return new IntData(defData); } -VariableData* createData(double defData) +VariableData* createData(const double defData) { return new FloatData(defData); } -VariableData* createData(float defData) +VariableData* createData(const float defData) { return new FloatData(defData); } @@ -56,7 +56,7 @@ VariableData* createData(const char* defData) return new StringData(defData); } -VariableData* createData(bool defData) +VariableData* createData(const bool defData) { return new BoolData(defData); } @@ -67,7 +67,7 @@ VariableData* createData(bool defData) DefaultsData* getConfigDefaults() { - DefaultsData* configData = new DefaultsData; + DefaultsData *const configData = new DefaultsData; // Init main config defaults AddDEF("OverlayDetail", 2); AddDEF("speechBubbleAlpha", 1.0f); @@ -267,7 +267,7 @@ DefaultsData* getConfigDefaults() DefaultsData* getBrandingDefaults() { - DefaultsData* configData = new DefaultsData; + DefaultsData *const configData = new DefaultsData; // Init config defaults AddDEF("wallpapersPath", ""); AddDEF("wallpapersFile", ""); @@ -306,7 +306,7 @@ DefaultsData* getBrandingDefaults() DefaultsData* getPathsDefaults() { - DefaultsData* configData = new DefaultsData; + DefaultsData *const configData = new DefaultsData; // Init paths.xml defaults AddDEF("itemIcons", "graphics/items/"); AddDEF("unknownItemFile", "unknown-item.png"); |