[Data Refactor] compilation error fix.

This commit is contained in:
James Chen 2013-12-20 21:16:46 +08:00
parent 21a9f05110
commit 9e05f300f3
4 changed files with 5 additions and 5 deletions

View File

@ -289,7 +289,7 @@ string UserDefault::getStringForKey(const char* pKey, const std::string & defaul
Data UserDefault::getDataForKey(const char* pKey)
{
return getDataForKey(pKey, NULL);
return getDataForKey(pKey, Data::Null);
}
Data UserDefault::getDataForKey(const char* pKey, const Data& defaultValue)

View File

@ -365,7 +365,7 @@ string UserDefault::getStringForKey(const char* pKey, const std::string & defaul
Data UserDefault::getDataForKey(const char* pKey)
{
return getDataForKey(pKey, NULL);
return getDataForKey(pKey, Data::Null);
}
Data UserDefault::getDataForKey(const char* pKey, const Data& defaultValue)

View File

@ -111,7 +111,7 @@ bool SAXParser::parse(const char* xmlData, size_t dataLength)
return tinyDoc.Accept( &printer );
}
bool SAXParser::parse(const char *pszFile)
bool SAXParser::parse(const std::string& filename)
{
bool ret = false;
Data data = FileUtils::getInstance()->getDataFromFile(filename);

View File

@ -26,7 +26,7 @@
#include "CCPlatformConfig.h"
#include "platform/CCCommon.h"
#include "string.h" // for size_t
#include <string>
NS_CC_BEGIN
@ -87,7 +87,7 @@ public:
* @js NA
* @lua NA
*/
bool parse(const char *file);
bool parse(const std::string& filename);
/**
* @js NA
* @lua NA