Why not write it like this

CCString* pRet = CCString::create(fullPathForFilename(pszRelativePath));