aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scanner/cpp/Lexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/scanner/cpp/Lexer.cpp')
-rw-r--r--src/plugins/scanner/cpp/Lexer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/scanner/cpp/Lexer.cpp b/src/plugins/scanner/cpp/Lexer.cpp
index 6bad85c5c..6793080e9 100644
--- a/src/plugins/scanner/cpp/Lexer.cpp
+++ b/src/plugins/scanner/cpp/Lexer.cpp
@@ -69,8 +69,6 @@ Lexer::Lexer(const char *firstChar, const char *lastChar)
setSource(firstChar, lastChar);
}
-Lexer::~Lexer() = default;
-
void Lexer::setSource(const char *firstChar, const char *lastChar)
{
_firstChar = firstChar;
@@ -566,7 +564,7 @@ void Lexer::scan_helper(Token *tok)
do {
yyinp();
- if (! (isalnum(_yychar) || _yychar == '_' || _yychar == '$'))
+ if (!isalnum(_yychar) && _yychar != '_' && _yychar != '$')
break;
} while (_yychar);