From b0667d8feba8b00ef55943f798ded258b53aec14 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 30 Dec 2020 14:02:30 +0000 Subject: Pass a cppcheck --- Jamroot.jam | 2 ++ gentoobrowse-api/service/utils/ebuildCacheParser.h | 2 +- gentoobrowse-api/service/utils/entityWhereFilter.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Jamroot.jam b/Jamroot.jam index 3b7d75a..b2c866c 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -19,6 +19,8 @@ project debug:on coverage:on tidy:ICE_IGNORE_VERSION + tidy:cxxstd-17-iso/maintenance.h + tidy:unpackPqTextArray.cpp ; build-project gentoobrowse-api ; diff --git a/gentoobrowse-api/service/utils/ebuildCacheParser.h b/gentoobrowse-api/service/utils/ebuildCacheParser.h index 1573439..e881e53 100644 --- a/gentoobrowse-api/service/utils/ebuildCacheParser.h +++ b/gentoobrowse-api/service/utils/ebuildCacheParser.h @@ -14,7 +14,7 @@ namespace Gentoo { public: typedef std::map KVs; - EbuildCacheParser(const std::filesystem::path & p); + explicit EbuildCacheParser(const std::filesystem::path & p); std::optional get(const std::string & key) const; std::optional getRange(const std::string & key) const; diff --git a/gentoobrowse-api/service/utils/entityWhereFilter.h b/gentoobrowse-api/service/utils/entityWhereFilter.h index 805e033..0c172dd 100644 --- a/gentoobrowse-api/service/utils/entityWhereFilter.h +++ b/gentoobrowse-api/service/utils/entityWhereFilter.h @@ -10,7 +10,7 @@ namespace Gentoo { public: typedef std::set EntityIds; - EntityWhereFilter(const std::string & en); + explicit EntityWhereFilter(const std::string & en); EntityWhereFilter(const std::string & en, const T & e); EntityWhereFilter(const std::string & en, const EntityIds & e); -- cgit v1.2.3