diff --git a/cocos/2d/CCConfiguration.h b/cocos/2d/CCConfiguration.h index a1bebb24c7..f0296080ec 100644 --- a/cocos/2d/CCConfiguration.h +++ b/cocos/2d/CCConfiguration.h @@ -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);