From 3029606342e787a2cf6e19e8bc763555abc9fc6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 10 Jun 2018 22:04:22 +0200 Subject: [PATCH] CheckClass: Fix Cppcheck warning about mismatching function parameters --- lib/checkclass.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index 32a1bac13..63178c775 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -2332,21 +2332,21 @@ const std::list & CheckClass::getVirtualFunctionCalls(const Funct void CheckClass::getFirstVirtualFunctionCallStack( std::map > & virtualFunctionCallsMap, const Token * callToken, - std::list & callstack) + std::list & pureFuncStack) { const Function *callFunction = callToken->function(); if (callFunction->isVirtual() && (!callFunction->isPure() || !callFunction->hasBody())) { - callstack.push_back(callFunction->tokenDef); + pureFuncStack.push_back(callFunction->tokenDef); return; } std::map >::const_iterator found = virtualFunctionCallsMap.find(callFunction); if (found == virtualFunctionCallsMap.end() || found->second.empty()) { - callstack.clear(); + pureFuncStack.clear(); return; } const Token * firstCall = *found->second.begin(); - callstack.push_back(firstCall); - getFirstVirtualFunctionCallStack(virtualFunctionCallsMap, firstCall, callstack); + pureFuncStack.push_back(firstCall); + getFirstVirtualFunctionCallStack(virtualFunctionCallsMap, firstCall, pureFuncStack); } void CheckClass::virtualFunctionCallInConstructorError(