From b3e4abd82aa3846ca5bd547f5bc79f8fdffebb59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 4 Sep 2014 18:08:56 +0200 Subject: [PATCH] Fixed Cppcheck warnings --- lib/executionpath.cpp | 2 +- lib/valueflow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/executionpath.cpp b/lib/executionpath.cpp index c42b4f72d..c6ce2f9f6 100644 --- a/lib/executionpath.cpp +++ b/lib/executionpath.cpp @@ -450,7 +450,7 @@ void ExecutionPath::checkScope(const Token *tok, std::list &che } - { + if (tok) { tok = check->parse(*tok, checks); if (checks.empty()) return; diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 41b791ed6..6907d9b25 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -655,7 +655,7 @@ static void removeValues(std::list &values, const std::list