From 6c1cc54671cd2397cfe293d4d1c3065de6dd9cb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 1 Feb 2020 08:24:31 +0100 Subject: [PATCH] Refactoring; Avoid template<> --- lib/valueflow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 5f9722ed8..bd1d7d294 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -4612,8 +4612,7 @@ static bool isInBounds(const ValueFlow::Value& value, MathLib::bigint x) return true; } -template -static const ValueFlow::Value* getCompareIntValue(const std::list& values, Compare compare) +static const ValueFlow::Value* getCompareIntValue(const std::list& values, std::function compare) { const ValueFlow::Value* result = nullptr; for (const ValueFlow::Value& value : values) {