diff options
author | Ed Tanous <ed@tanous.net> | 2024-03-19 22:18:06 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-03-25 21:29:19 +0300 |
commit | 47f2934cc509e420e5617a96158e76829746b835 (patch) | |
tree | dd73fdb8eb071886f4de28a0a911972d6ce4940f /redfish-core | |
parent | 0501696e3663eafb3e497120b85f0f0a8194a97b (diff) | |
download | bmcweb-47f2934cc509e420e5617a96158e76829746b835.tar.xz |
Fix redundant init issues
clang-tidy-18 must've fixed their checking for these in headers.
Resolve as the robot commands.
Tested: Noop changes made by tidy. Code compiles.
Change-Id: I1de7686c597deffb0df91c30dae1a29f9ba7900e
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/include/utils/query_param.hpp | 5 | ||||
-rw-r--r-- | redfish-core/lib/account_service.hpp | 14 | ||||
-rw-r--r-- | redfish-core/lib/metric_report_definition.hpp | 4 |
3 files changed, 13 insertions, 10 deletions
diff --git a/redfish-core/include/utils/query_param.hpp b/redfish-core/include/utils/query_param.hpp index 881b09052f..fa2b4dae60 100644 --- a/redfish-core/include/utils/query_param.hpp +++ b/redfish-core/include/utils/query_param.hpp @@ -180,7 +180,10 @@ struct Query std::optional<size_t> top = std::nullopt; // Select - SelectTrie selectTrie = {}; + // Unclear how to make this use structured initialization without this. + // Might be a tidy bug? Ignore for now + // NOLINTNEXTLINE(readability-redundant-member-init) + SelectTrie selectTrie{}; }; // The struct defines how resource handlers in redfish-core/lib/ can handle diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp index d897fcdb8d..ab9048a435 100644 --- a/redfish-core/lib/account_service.hpp +++ b/redfish-core/lib/account_service.hpp @@ -63,14 +63,14 @@ struct LDAPRoleMapData struct LDAPConfigData { - std::string uri{}; - std::string bindDN{}; - std::string baseDN{}; - std::string searchScope{}; - std::string serverType{}; + std::string uri; + std::string bindDN; + std::string baseDN; + std::string searchScope; + std::string serverType; bool serviceEnabled = false; - std::string userNameAttribute{}; - std::string groupAttribute{}; + std::string userNameAttribute; + std::string groupAttribute; std::vector<std::pair<std::string, LDAPRoleMapData>> groupRoleList; }; diff --git a/redfish-core/lib/metric_report_definition.hpp b/redfish-core/lib/metric_report_definition.hpp index f68abdc92d..643fd52a08 100644 --- a/redfish-core/lib/metric_report_definition.hpp +++ b/redfish-core/lib/metric_report_definition.hpp @@ -763,7 +763,7 @@ class AddReport private: std::shared_ptr<bmcweb::AsyncResp> asyncResp; AddReportArgs args; - boost::container::flat_map<std::string, std::string> uriToDbus{}; + boost::container::flat_map<std::string, std::string> uriToDbus; }; class UpdateMetrics @@ -881,7 +881,7 @@ class UpdateMetrics const std::shared_ptr<bmcweb::AsyncResp> asyncResp; std::vector<std::vector<std::string>> readingParamsUris; - ReadingParameters readingParams{}; + ReadingParameters readingParams; }; inline void |