I use it here :   

char *pFileContent = (char *)CCFileUtils::getInstance()->getFileData(fullPath.c_str() , "r", &size);
DataReaderHelper::addDataFromCache(pFileContent, &dataInfo);

Using const std::string& will create a new string and copy the file content。
Do i need to do this?