[Scummvm-cvs-logs] SF.net SVN: scummvm:[52394] scummvm/trunk/tools/create_translations/ po_parser.cpp

dhewg at users.sourceforge.net dhewg at users.sourceforge.net
Wed Aug 25 21:41:59 CEST 2010


Revision: 52394
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52394&view=rev
Author:   dhewg
Date:     2010-08-25 19:41:59 +0000 (Wed, 25 Aug 2010)

Log Message:
-----------
TOOLS: const correctness to fix compilation.

Modified Paths:
--------------
    scummvm/trunk/tools/create_translations/po_parser.cpp

Modified: scummvm/trunk/tools/create_translations/po_parser.cpp
===================================================================
--- scummvm/trunk/tools/create_translations/po_parser.cpp	2010-08-25 19:07:24 UTC (rev 52393)
+++ scummvm/trunk/tools/create_translations/po_parser.cpp	2010-08-25 19:41:59 UTC (rev 52394)
@@ -301,7 +301,7 @@
 	// It will return a NULL pointer if the field is not found.
 	// It is used to parse the header of the po files to find the language name
 	// and the charset.
-	char *str = strstr(line, field);
+	const char *str = strstr(line, field);
 	if (str == NULL)
 		return NULL;
 	str += strlen(field);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list