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);