[opengtl-commits] [745] check if the first character is non-null, and ignore a null one |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 745
Author: cyrille
Date: 2009-05-29 10:58:11 +0200 (Fri, 29 May 2009)
Log Message:
-----------
check if the first character is non-null, and ignore a null one
Modified Paths:
--------------
trunk/OpenGTL/OpenGTL/GTLCore/LexerBase_p.cpp
Modified: trunk/OpenGTL/OpenGTL/GTLCore/LexerBase_p.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/LexerBase_p.cpp 2009-05-29 08:57:49 UTC (rev 744)
+++ trunk/OpenGTL/OpenGTL/GTLCore/LexerBase_p.cpp 2009-05-29 08:58:11 UTC (rev 745)
@@ -133,7 +133,9 @@
GTLCore::String LexerBase::getIdentifier(int lastChar)
{
GTLCore::String identifierStr;
- identifierStr = lastChar;
+ if( lastChar != 0) {
+ identifierStr = lastChar;
+ }
while (not eof() )
{
lastChar = getNextChar();