From dc230d18ef1941db12634e79dc5820841b1a1210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 28 Jan 2021 12:36:31 +0100 Subject: [PATCH] Try to fix Cppcheck self-check warnings --- lib/clangimport.cpp | 2 +- lib/symboldatabase.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/clangimport.cpp b/lib/clangimport.cpp index 93c732f85..90e998bc1 100644 --- a/lib/clangimport.cpp +++ b/lib/clangimport.cpp @@ -660,7 +660,7 @@ Scope *clangimport::AstNode::createScope(TokenList *tokenList, Scope::ScopeType if (replaceVar.find(&(*var)) != replaceVar.end()) varlist.erase(var++); else - var++; + ++var; } } scope->bodyStart = addtoken(tokenList, "{"); diff --git a/lib/symboldatabase.h b/lib/symboldatabase.h index 376e2440b..681c5fb47 100644 --- a/lib/symboldatabase.h +++ b/lib/symboldatabase.h @@ -246,6 +246,8 @@ public: ~Variable(); + Variable &operator=(const Variable &var) = delete; + /** * Get name token. * @return name token