From 08dbb4530cf1459fee2cc911ef7b385a29ceb2d6 Mon Sep 17 00:00:00 2001 From: Andreas Fertig Date: Tue, 29 Jan 2019 21:28:30 +0100 Subject: [PATCH] Fixed #112: Remove unused variable. --- FunctionDeclHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FunctionDeclHandler.cpp b/FunctionDeclHandler.cpp index f3f30d5c..f479db10 100644 --- a/FunctionDeclHandler.cpp +++ b/FunctionDeclHandler.cpp @@ -102,7 +102,7 @@ void FunctionDeclHandler::run(const MatchFinder::MatchResult& result) } else if(const auto* usingDecl = result.Nodes.getNodeAs("using")) { // Check if one of the shadows contains a ConstructorUsingShadowDecl which implies Base::Base. for(const auto& shadow : usingDecl->shadows()) { - if(const auto* usingShadow = dyn_cast_or_null(shadow)) { + if(isa(shadow)) { // This is a base ctor using. Remove this using. The actual code is inserted by the FunctionDecl // matcher. const auto sr = GetSourceRangeAfterSemi(usingDecl->getSourceRange(), result);