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
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef ADHOC_COMMAND_HPP
# define ADHOC_COMMAND_HPP
#pragma once
/**
* Describe an ad-hoc command.
@@ -43,5 +42,3 @@ void PingStep1(XmppComponent&, AdhocSession& session, XmlNode& command_node);
void HelloStep1(XmppComponent&, AdhocSession& session, XmlNode& command_node);
void HelloStep2(XmppComponent&, AdhocSession& session, XmlNode& command_node);
void Reload(XmppComponent&, AdhocSession& session, XmlNode& command_node);
#endif // ADHOC_COMMAND_HPP
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef ADHOC_COMMANDS_HANDLER_HPP
# define ADHOC_COMMANDS_HANDLER_HPP
#pragma once
/**
* Manage a list of available AdhocCommands and the list of ongoing
@@ -70,5 +69,3 @@ private:
*/
std::map<std::pair<const std::string, const std::string>, AdhocSession> sessions;
};
#endif // ADHOC_COMMANDS_HANDLER_HPP
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef ADHOC_SESSION_HPP
# define ADHOC_SESSION_HPP
#pragma once
#include <xmpp/xmpp_stanza.hpp>
@@ -87,5 +86,3 @@ public:
*/
std::map<std::string, std::string> vars;
};
#endif // ADHOC_SESSION_HPP
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef XMPP_BODY_HPP_INCLUDED
#define XMPP_BODY_HPP_INCLUDED
#pragma once
namespace Xmpp
{
@@ -9,4 +9,4 @@ namespace Xmpp
using body = std::tuple<const std::string, std::unique_ptr<XmlNode>>;
}
#endif /* XMPP_BODY_HPP_INCLUDED */
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef JID_INCLUDED
# define JID_INCLUDED
#pragma once
#include <string>
@@ -41,4 +41,4 @@ public:
*/
std::string jidprep(const std::string& original);
#endif // JID_INCLUDED
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef ROSTER_HPP_INCLUDED
#define ROSTER_HPP_INCLUDED
#pragma once
#include <algorithm>
#include <string>
@@ -68,4 +68,4 @@ private:
Roster& operator=(Roster&&) = delete;
};
#endif /* ROSTER_HPP_INCLUDED */
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef XMPP_COMPONENT_INCLUDED
# define XMPP_COMPONENT_INCLUDED
#pragma once
#include <xmpp/adhoc_commands_handler.hpp>
#include <network/tcp_socket_handler.hpp>
@@ -240,4 +240,4 @@ protected:
AdhocCommandsHandler adhoc_commands_handler;
};
#endif // XMPP_COMPONENT_INCLUDED
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef XMPP_PARSER_INCLUDED
# define XMPP_PARSER_INCLUDED
#pragma once
#include <xmpp/xmpp_stanza.hpp>
@@ -130,4 +130,4 @@ private:
std::vector<std::function<void(const XmlNode&)>> stream_close_callbacks;
};
#endif // XMPP_PARSER_INCLUDED
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef XMPP_STANZA_INCLUDED
# define XMPP_STANZA_INCLUDED
#pragma once
#include <map>
#include <string>
@@ -143,4 +143,4 @@ std::ostream& operator<<(std::ostream& os, const XmlNode& node);
*/
using Stanza = XmlNode;
#endif // XMPP_STANZA_INCLUDED