refactor: modernize standard library usage across six Sonar rules (#5930)

This commit is contained in:
Dave Lane authored and GitHub committed 2026-10-14 15:33:54 -04:00
1 parent 81a677c1ee
commit 80588defde
37 files changed
+464 -121

No files matched your search

+8 -8
View File
@@ -18,15 +18,15 @@ namespace ip = boost::asio::ip;
namespace net {
/**
* @brief Pc ips v4.
* @brief IPv4 loopback networks used for local-client classification.
*/
std::vector<ip::network_v4> pc_ips_v4 {
std::vector pc_ips_v4 {
ip::make_network_v4("127.0.0.0/8"sv),
};
/**
* @brief Lan ips v4.
* @brief IPv4 private and link-local networks used for LAN classification.
*/
std::vector<ip::network_v4> lan_ips_v4 {
std::vector lan_ips_v4 {
ip::make_network_v4("192.168.0.0/16"sv),
ip::make_network_v4("172.16.0.0/12"sv),
ip::make_network_v4("10.0.0.0/8"sv),
@@ -35,15 +35,15 @@ namespace net {
};
/**
* @brief Pc ips v6.
* @brief IPv6 loopback networks used for local-client classification.
*/
std::vector<ip::network_v6> pc_ips_v6 {
std::vector pc_ips_v6 {
ip::make_network_v6("::1/128"sv),
};
/**
* @brief Lan ips v6.
* @brief IPv6 private and link-local networks used for LAN classification.
*/
std::vector<ip::network_v6> lan_ips_v6 {
std::vector lan_ips_v6 {
ip::make_network_v6("fc00::/7"sv),
ip::make_network_v6("fe80::/64"sv),
};