Revision: 2522 http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2522&view=rev Author: ulteq Date: 2012-05-07 04:22:43 +0000 (Mon, 07 May 2012) Log Message: ----------- fixed typo
Modified Paths: -------------- trunk/source/main/utils/utils.cpp Modified: trunk/source/main/utils/utils.cpp =================================================================== --- trunk/source/main/utils/utils.cpp 2012-05-07 03:32:20 UTC (rev 2521) +++ trunk/source/main/utils/utils.cpp 2012-05-07 04:22:43 UTC (rev 2522) @@ -314,15 +314,15 @@ #else // TODO: GET THIS WORKING /* - const char* srcPtr = _source.c_str(); + const char* srcPtr = source.c_str(); iconv_t icv = iconv_open("ASCII", "UTF-8"); if ( icv == (iconv_t) -1 ) { return std::wstring(L"ERR1"); } - char *inpbuf = const_cast<char *>(_source.c_str()); - size_t inbytes = _source.size(); + char *inpbuf = const_cast<char *>(source.c_str()); + size_t inbytes = source.size(); size_t outbytes = inbytes; size_t nread = 0; char *outbuf = (char *)calloc((outbytes*4+1)*sizeof(char), 1); @@ -338,8 +338,8 @@ */ // hacky! - std::wstring str2(_source.length(), L' '); // Make room for characters - std::copy(_source.begin(), _source.end(), str2.begin()); + std::wstring str2(source.length(), L' '); // Make room for characters + std::copy(source.begin(), source.end(), str2.begin()); return str2; #endif // WIN32 } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Rigsofrods-devel mailing list Rigsofrods-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel