mirror of https://github.com/axmolengine/axmol.git
issue #2790: Configuration::getValue has default value now.
This commit is contained in:
parent
1a1cef9342
commit
40bc797b1f
|
@ -116,7 +116,7 @@ public:
|
|||
bool init();
|
||||
|
||||
/** returns the value of a given key as a double */
|
||||
const Value& getValue(const std::string& key, const Value& defaultValue) const;
|
||||
const Value& getValue(const std::string& key, const Value& defaultValue = Value::Null) const;
|
||||
|
||||
/** sets a new key/value pair in the configuration dictionary */
|
||||
void setValue(const std::string& key, const Value& value);
|
||||
|
|
Loading…
Reference in New Issue