[gjs: 6/10] maint: Remove workaround for fixed cppcheck bug




commit 4e6d2cb6b1060ebbbea8b198766d74cccb344674
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Jul 23 08:13:34 2022 -0700

    maint: Remove workaround for fixed cppcheck bug

 gi/arg-cache.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gi/arg-cache.cpp b/gi/arg-cache.cpp
index 6a7dc0b82..707f2978f 100644
--- a/gi/arg-cache.cpp
+++ b/gi/arg-cache.cpp
@@ -1506,9 +1506,7 @@ template <typename T>
 constexpr size_t argument_maximum_size() {
     if constexpr (std::is_same_v<T, Arg::NumericIn>)
         return 24;
-    // COMPAT: Work around cppcheck bug, fixed in cppcheck 2.6.
-    // https://trac.cppcheck.net/ticket/10015
-    if constexpr (std::is_same<T, Arg::ObjectIn>{} ||
+    if constexpr (std::is_same_v<T, Arg::ObjectIn> ||
                   std::is_same_v<T, Arg::BoxedIn>)
         return 40;
     else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]