summaryrefslogtreecommitdiff
path: root/louloulibs/xmpp
diff options
context:
space:
mode:
Diffstat (limited to 'louloulibs/xmpp')
-rw-r--r--louloulibs/xmpp/adhoc_command.hpp5
-rw-r--r--louloulibs/xmpp/adhoc_commands_handler.hpp5
-rw-r--r--louloulibs/xmpp/adhoc_session.hpp5
-rw-r--r--louloulibs/xmpp/body.hpp6
-rw-r--r--louloulibs/xmpp/jid.hpp6
-rw-r--r--louloulibs/xmpp/roster.hpp6
-rw-r--r--louloulibs/xmpp/xmpp_component.hpp6
-rw-r--r--louloulibs/xmpp/xmpp_parser.hpp6
-rw-r--r--louloulibs/xmpp/xmpp_stanza.hpp6
9 files changed, 21 insertions, 30 deletions
diff --git a/louloulibs/xmpp/adhoc_command.hpp b/louloulibs/xmpp/adhoc_command.hpp
index 1c4e4de..7c4de47 100644
--- a/louloulibs/xmpp/adhoc_command.hpp
+++ b/louloulibs/xmpp/adhoc_command.hpp
@@ -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
diff --git a/louloulibs/xmpp/adhoc_commands_handler.hpp b/louloulibs/xmpp/adhoc_commands_handler.hpp
index 65b094d..91eb5bd 100644
--- a/louloulibs/xmpp/adhoc_commands_handler.hpp
+++ b/louloulibs/xmpp/adhoc_commands_handler.hpp
@@ -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
diff --git a/louloulibs/xmpp/adhoc_session.hpp b/louloulibs/xmpp/adhoc_session.hpp
index 0966c4e..0de8d13 100644
--- a/louloulibs/xmpp/adhoc_session.hpp
+++ b/louloulibs/xmpp/adhoc_session.hpp
@@ -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
diff --git a/louloulibs/xmpp/body.hpp b/louloulibs/xmpp/body.hpp
index df86feb..068d1a4 100644
--- a/louloulibs/xmpp/body.hpp
+++ b/louloulibs/xmpp/body.hpp
@@ -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 */
+
diff --git a/louloulibs/xmpp/jid.hpp b/louloulibs/xmpp/jid.hpp
index 5ff5a4f..08327ef 100644
--- a/louloulibs/xmpp/jid.hpp
+++ b/louloulibs/xmpp/jid.hpp
@@ -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
+
diff --git a/louloulibs/xmpp/roster.hpp b/louloulibs/xmpp/roster.hpp
index 0aebca5..aa1b449 100644
--- a/louloulibs/xmpp/roster.hpp
+++ b/louloulibs/xmpp/roster.hpp
@@ -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 */
+
diff --git a/louloulibs/xmpp/xmpp_component.hpp b/louloulibs/xmpp/xmpp_component.hpp
index ae4d76b..5fc6d2e 100644
--- a/louloulibs/xmpp/xmpp_component.hpp
+++ b/louloulibs/xmpp/xmpp_component.hpp
@@ -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
+
diff --git a/louloulibs/xmpp/xmpp_parser.hpp b/louloulibs/xmpp/xmpp_parser.hpp
index 93c6c53..9d67228 100644
--- a/louloulibs/xmpp/xmpp_parser.hpp
+++ b/louloulibs/xmpp/xmpp_parser.hpp
@@ -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
+
diff --git a/louloulibs/xmpp/xmpp_stanza.hpp b/louloulibs/xmpp/xmpp_stanza.hpp
index 28b8414..4ca758e 100644
--- a/louloulibs/xmpp/xmpp_stanza.hpp
+++ b/louloulibs/xmpp/xmpp_stanza.hpp
@@ -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
+