summaryrefslogtreecommitdiff
path: root/src/defaults.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-26 02:48:32 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-26 02:48:32 +0300
commitab596ef3f4215f792feaa9ca1dfe5acb74c67328 (patch)
treeac5a4f31e2fa9c784d7de8d817654d47e21ccac2 /src/defaults.cpp
parent399f264360f6e8dfa31d0c3ff7d72aad8033888d (diff)
downloadplus-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.cpp14
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");