From 8c08c4d66bfbf0283885c8e20d3597b35225671f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 25 Dec 2008 18:24:57 +0000 Subject: [PATCH] uniformize files --- token.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/token.cpp b/token.cpp index c5344e63c..958f73c9a 100644 --- a/token.cpp +++ b/token.cpp @@ -140,8 +140,8 @@ bool TOKEN::simpleMatch(const TOKEN *tok, const char pattern[]) const char *current, *next; current = pattern; - next = strchr(pattern, ' '); - if ( !next ) + next = strchr(pattern, ' '); + if ( !next ) next = pattern + strlen(pattern); while ( *current ) @@ -152,11 +152,11 @@ bool TOKEN::simpleMatch(const TOKEN *tok, const char pattern[]) return false; current = next; - if ( *next ) - { - next = strchr(++current, ' '); - if ( !next ) - next = current + strlen(current); + if ( *next ) + { + next = strchr(++current, ' '); + if ( !next ) + next = current + strlen(current); } tok = tok->next(); }