From 118021fa168aafa41814e617520070b74a21961d Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Fri, 28 Feb 2025 23:18:59 +0700 Subject: [PATCH] all ifndef replaced with pragma once --- src/settings/dns/dns.hpp | 6 +----- src/settings/ftp/ftp.hpp | 6 +----- src/settings/settings.hpp | 6 +----- src/settings/ssh/ssh.hpp | 6 +----- src/settings/telnet/telnet.hpp | 6 +----- src/settings/wifi/wifi.hpp | 6 +----- 6 files changed, 6 insertions(+), 30 deletions(-) diff --git a/src/settings/dns/dns.hpp b/src/settings/dns/dns.hpp index 91227d0..0f73f27 100644 --- a/src/settings/dns/dns.hpp +++ b/src/settings/dns/dns.hpp @@ -1,6 +1,4 @@ -#ifndef DNS_HPP -#define DNS_HPP - +#pragma once #include namespace api @@ -15,5 +13,3 @@ namespace api } } } - -#endif // DNS_HPP diff --git a/src/settings/ftp/ftp.hpp b/src/settings/ftp/ftp.hpp index a7daca2..8d55032 100644 --- a/src/settings/ftp/ftp.hpp +++ b/src/settings/ftp/ftp.hpp @@ -1,6 +1,4 @@ -#ifndef FTP_HPP -#define FTP_HPP - +#pragma once namespace api { namespace settings @@ -11,5 +9,3 @@ namespace api } } } - -#endif // FTP_HPP diff --git a/src/settings/settings.hpp b/src/settings/settings.hpp index 473037e..23eb8bd 100644 --- a/src/settings/settings.hpp +++ b/src/settings/settings.hpp @@ -1,6 +1,4 @@ -#ifndef SETTINGS_HPP -#define SETTINGS_HPP - +#pragma once #include #include #include @@ -19,5 +17,3 @@ namespace api void set(const httplib::Request& request, httplib::Response& response); } } - -#endif // SETTINGS_HPP diff --git a/src/settings/ssh/ssh.hpp b/src/settings/ssh/ssh.hpp index 2326685..cad9d15 100644 --- a/src/settings/ssh/ssh.hpp +++ b/src/settings/ssh/ssh.hpp @@ -1,6 +1,4 @@ -#ifndef SSH_HPP -#define SSH_HPP - +#pragma once #include #define DROPBEAR_SSH "dropbear" @@ -20,5 +18,3 @@ namespace api } } } - -#endif // SSH_HPP diff --git a/src/settings/telnet/telnet.hpp b/src/settings/telnet/telnet.hpp index e59d085..975e634 100644 --- a/src/settings/telnet/telnet.hpp +++ b/src/settings/telnet/telnet.hpp @@ -1,6 +1,4 @@ -#ifndef SETTINGS_TELNET_HPP -#define SETTINGS_TELNET_HPP - +#pragma once namespace api { namespace settings @@ -12,5 +10,3 @@ namespace api } } } - -#endif // SETTINGS_TELNET_HPP diff --git a/src/settings/wifi/wifi.hpp b/src/settings/wifi/wifi.hpp index 12e06a2..6d9a2d9 100644 --- a/src/settings/wifi/wifi.hpp +++ b/src/settings/wifi/wifi.hpp @@ -1,6 +1,4 @@ -#ifndef WIFI_HPP -#define WIFI_HPP - +#pragma once #include #define WIFI_SETTINGS_PATH "/etc/hostapd/hostapd.conf" @@ -19,5 +17,3 @@ namespace api } } } - -#endif // WIFI_HPP -- 2.54.0