diff options
author | Alexander Lohnau <alexander.lohnau@gmx.de> | 2024-02-05 19:46:07 +0100 |
---|---|---|
committer | Alexander Lohnau <alexander.lohnau@gmx.de> | 2024-02-11 14:34:36 +0100 |
commit | 41360d6d3869f4e47bbd0c3e5b40c1ef521543d7 (patch) | |
tree | 5b351b47038ff8851440fb2b026049d9f9deba06 | |
parent | b72081e377a0a6a8a156ea151610d98a912b1ff5 (diff) |
qstring-incasesensitive-allocation: Make initializer list usage slightly more consistent
-rw-r--r-- | src/checks/level0/qstring-insensitive-allocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checks/level0/qstring-insensitive-allocation.cpp b/src/checks/level0/qstring-insensitive-allocation.cpp index 3a5a8819..318007e6 100644 --- a/src/checks/level0/qstring-insensitive-allocation.cpp +++ b/src/checks/level0/qstring-insensitive-allocation.cpp @@ -30,7 +30,7 @@ static bool isInterestingCall1(CallExpr *call) return false; } - static const std::vector<std::string> methods = {"QString::toUpper", "QString::toLower"}; + static const std::vector<std::string> methods{"QString::toUpper", "QString::toLower"}; return clazy::contains(methods, clazy::qualifiedMethodName(func)); } @@ -41,7 +41,7 @@ static bool isInterestingCall2(CallExpr *call) return false; } - static const std::vector<std::string> methods = {"QString::endsWith", "QString::startsWith", "QString::contains", "QString::compare"}; + static const std::vector<std::string> methods{"QString::endsWith", "QString::startsWith", "QString::contains", "QString::compare"}; return clazy::contains(methods, clazy::qualifiedMethodName(func)); } |