From d39693c903ebb1200432026ee682747694923785 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Thu, 8 Aug 2024 01:11:50 +0200 Subject: [PATCH] Rename --- lib/valueflow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index d4d753def6d..fac53ecb3f2 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -7094,7 +7094,7 @@ static void valueFlowContainerSize(const TokenList& tokenlist, } } - auto forwardImpossibleContainerSize = [&](MathLib::bigint size, Token* opTok, const Token* exprTok) -> void { + auto forwardMinimumContainerSize = [&](MathLib::bigint size, Token* opTok, const Token* exprTok) -> void { if (size == 0) return; @@ -7180,7 +7180,7 @@ static void valueFlowContainerSize(const TokenList& tokenlist, const Token* containerTok = tok->astOperand1(); const Token* valueTok = tok->astOperand2(); const MathLib::bigint size = valueFlowGetStrLength(valueTok); - forwardImpossibleContainerSize(size, tok, containerTok); + forwardMinimumContainerSize(size, tok, containerTok); } else if (tok->str() == "=" && Token::simpleMatch(tok->astOperand2(), "+") && astIsContainerString(tok)) { const Token* tok2 = tok->astOperand2(); @@ -7190,7 +7190,7 @@ static void valueFlowContainerSize(const TokenList& tokenlist, tok2 = tok2->astOperand1(); } size += valueFlowGetStrLength(tok2); - forwardImpossibleContainerSize(size, tok, tok->astOperand1()); + forwardMinimumContainerSize(size, tok, tok->astOperand1()); } } }