From 40bc797b1ff54075d98bc1dd34b76be4909f3205 Mon Sep 17 00:00:00 2001 From: James Chen Date: Wed, 11 Dec 2013 14:59:46 +0800 Subject: [PATCH] issue #2790: Configuration::getValue has default value now. --- cocos/2d/CCConfiguration.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);