From f475bcf10243f2580cccd9bef110398396cf1883 Mon Sep 17 00:00:00 2001 From: Walzer Date: Sun, 16 Sep 2012 16:21:42 +0800 Subject: [PATCH] CCString::stringWithContentsOfFile should call CCString::createWithContentsOfFile, but not CCString::create --- cocos2dx/cocoa/CCString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2dx/cocoa/CCString.cpp b/cocos2dx/cocoa/CCString.cpp index f522d11eec..f6ea6d8390 100644 --- a/cocos2dx/cocoa/CCString.cpp +++ b/cocos2dx/cocoa/CCString.cpp @@ -219,7 +219,7 @@ CCString* CCString::createWithFormat(const char* format, ...) CCString* CCString::stringWithContentsOfFile(const char* pszFileName) { - return CCString::create(pszFileName); + return CCString::createWithContentsOfFile(pszFileName); } CCString* CCString::createWithContentsOfFile(const char* pszFileName)