summaryrefslogtreecommitdiff
path: root/src/defaults.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-31 01:34:38 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-31 01:34:38 +0300
commite826d4c63365dde4c988453846437dcb65370945 (patch)
tree1bd23d4694c06d97e7e8c885253c0100fe6142b9 /src/defaults.h
parent75ca03c95c90064e67fa9eaddb4c609196dd3a27 (diff)
downloadmanaverse-e826d4c63365dde4c988453846437dcb65370945.tar.gz
manaverse-e826d4c63365dde4c988453846437dcb65370945.tar.bz2
manaverse-e826d4c63365dde4c988453846437dcb65370945.tar.xz
manaverse-e826d4c63365dde4c988453846437dcb65370945.zip
Improve setting default values for configuration objects.
Diffstat (limited to 'src/defaults.h')
-rw-r--r--src/defaults.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/defaults.h b/src/defaults.h
index 944b91fe4..f38c13ee1 100644
--- a/src/defaults.h
+++ b/src/defaults.h
@@ -27,6 +27,7 @@
#include "localconsts.h"
+class Configuration;
class VariableData;
typedef std::map<std::string, VariableData*> DefaultsData;
@@ -37,10 +38,10 @@ VariableData* createData(const float defData) A_WARN_UNUSED;
VariableData* createData(const std::string &defData) A_WARN_UNUSED;
VariableData* createData(const char *const defData) A_WARN_UNUSED;
VariableData* createData(const bool defData) A_WARN_UNUSED;
-DefaultsData* getConfigDefaults() A_WARN_UNUSED;
-void getConfigDefaults2(DefaultsData *const configData);
-DefaultsData* getBrandingDefaults() A_WARN_UNUSED;
-DefaultsData* getPathsDefaults() A_WARN_UNUSED;
-DefaultsData* getFeaturesDefaults() A_WARN_UNUSED;
+void setConfigDefaults(Configuration &cfg);
+void setConfigDefaults2(Configuration &cfg);
+void setBrandingDefaults(Configuration &cfg);
+void setPathsDefaults(Configuration &cfg);
+void setFeaturesDefaults(Configuration &cfg);
#endif // DEFAULTS_H