From 7d59985d882feca7cdf9d378ff725089115524e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 4 Jan 2009 07:08:56 +0000 Subject: [PATCH] Refactoring : Changed a 'strcmp' to a 'simpleMatch' --- checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkother.cpp b/checkother.cpp index 13bd595f0..e7ad1b0c4 100644 --- a/checkother.cpp +++ b/checkother.cpp @@ -648,7 +648,7 @@ void CheckOther::CheckStructMemberUsage() if (Token::Match(tok2, ". %var1%", 0, varnames)) { - if ( strcmp("=", tok2->strAt(2)) == 0 ) + if ( Token::simpleMatch(tok2->tokAt(2), "=") ) continue; used = true; break;