I am porting a Codewarrior project to XCode and need some advices about how to do things correctly
I have this function :
TCProfileTextType( const std::string& inText, unsigned long inTagSignature, const short inLangCode = 'ja', const short inRegionCode = 'JP');
I get no warnings whatsoever in Codewarrior, but compiling the same source file with gcc 4.0 raises this : warning : multi-character character constant
I would like to get rid of this warning and tried this :
#include <limits.h>
TCProfileTextType( const std::string& inText, unsigned long inTagSignature, const short inLangCode = ('j' << CHAR_BIT) | 'a', const short inRegionCode = ('J' << CHAR_BIT) | 'P');
Works, but I don't really like it ....
I read in the CodeWarrior / Xcode porting guide that CFString should be used for this kind of porting problem.
Could anybody tell me how to use CFString in such a situation ? |