Replace all include guards by #pragma once

It’s $CURRENT_YEAR
This commit is contained in:
louiz’
2016-07-04 17:53:53 +02:00
parent 5321d29cbd
commit 81f8f45b37
40 changed files with 101 additions and 124 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef ENCODING_INCLUDED
# define ENCODING_INCLUDED
#pragma once
#include <string>
@@ -40,4 +40,4 @@ namespace xep0106
void encode(std::string&);
}
#endif // ENCODING_INCLUDED
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef RELOAD_HPP_INCLUDED
#define RELOAD_HPP_INCLUDED
#pragma once
/**
* Reload the server's configuration, and close the logger (so that it
@@ -7,4 +7,4 @@
*/
void reload_process();
#endif /* RELOAD_HPP_INCLUDED */
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef REVSTR_HPP_INCLUDED
# define REVSTR_HPP_INCLUDED
#pragma once
#include <string>
@@ -8,4 +8,4 @@ namespace utils
std::string revstr(const std::string& original);
}
#endif // REVSTR_HPP_INCLUDED
+1 -3
View File
@@ -1,5 +1,4 @@
#ifndef SCOPEGUARD_HPP
#define SCOPEGUARD_HPP
#pragma once
#include <functional>
#include <vector>
@@ -88,4 +87,3 @@ private:
}
#endif
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef SPLIT_INCLUDED
# define SPLIT_INCLUDED
#pragma once
#include <string>
#include <vector>
@@ -9,4 +9,4 @@ namespace utils
std::vector<std::string> split(const std::string &s, const char delim, const bool allow_empty=true);
}
#endif // SPLIT_INCLUDED
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef STRING_UTILS_HPP_INCLUDED
#define STRING_UTILS_HPP_INCLUDED
#pragma once
#include <vector>
#include <string>
@@ -7,4 +7,4 @@
bool to_bool(const std::string& val);
std::vector<std::string> cut(const std::string& val, const std::size_t size);
#endif /* STRING_UTILS_HPP_INCLUDED */
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef TIMED_EVENTS_HPP
# define TIMED_EVENTS_HPP
#pragma once
#include <functional>
#include <string>
@@ -131,5 +130,3 @@ private:
std::vector<TimedEvent> events;
explicit TimedEventsManager() = default;
};
#endif // TIMED_EVENTS_HPP
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef TOLOWER_INCLUDED
# define TOLOWER_INCLUDED
#pragma once
#include <string>
@@ -8,4 +8,4 @@ namespace utils
std::string tolower(const std::string& original);
}
#endif // SPLIT_INCLUDED
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef XDG_HPP_INCLUDED
#define XDG_HPP_INCLUDED
#pragma once
#include <string>
@@ -11,4 +11,4 @@
std::string xdg_config_path(const std::string& filename);
std::string xdg_data_path(const std::string& filename);
#endif /* XDG_HPP_INCLUDED */