From f66896e14f09b101c5ce1e81493e3c134a9bb3dc Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Sun, 30 Jul 2023 01:33:18 +0200 Subject: [PATCH] Update valueflow.cpp --- lib/valueflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index c8b928915c1..585e1403b4f 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -4282,7 +4282,7 @@ static bool hasBorrowingVariables(const std::list& vars, const std::ve if (vt->type == ValueType::CONTAINER && vt->container) return vt->container->view; if (vt->typeScope) - return isOwningVariables(vt->typeScope->varlist, args, depth - 1); + return hasBorrowingVariables(vt->typeScope->varlist, args, depth - 1); } return false; });