summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bridge/bridge.hpp6
-rw-r--r--src/bridge/colors.hpp6
-rw-r--r--src/bridge/list_element.hpp6
-rw-r--r--src/database/database.hpp6
-rw-r--r--src/irc/iid.hpp6
-rw-r--r--src/irc/irc_channel.hpp6
-rw-r--r--src/irc/irc_client.hpp6
-rw-r--r--src/irc/irc_message.hpp6
-rw-r--r--src/irc/irc_user.hpp6
-rw-r--r--src/utils/empty_if_fixed_server.hpp6
-rw-r--r--src/xmpp/biboumi_adhoc_commands.hpp6
-rw-r--r--src/xmpp/biboumi_component.hpp6
12 files changed, 36 insertions, 36 deletions
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp
index f8eea94..69b7bd5 100644
--- a/src/bridge/bridge.hpp
+++ b/src/bridge/bridge.hpp
@@ -1,5 +1,5 @@
-#ifndef BRIDGE_INCLUDED
-# define BRIDGE_INCLUDED
+#pragma once
+
#include <irc/irc_message.hpp>
#include <irc/irc_client.hpp>
@@ -290,4 +290,4 @@ struct IRCNotConnected: public std::exception
const std::string hostname;
};
-#endif // BRIDGE_INCLUDED
+
diff --git a/src/bridge/colors.hpp b/src/bridge/colors.hpp
index 2ba80ee..e2c8a87 100644
--- a/src/bridge/colors.hpp
+++ b/src/bridge/colors.hpp
@@ -1,5 +1,5 @@
-#ifndef COLORS_INCLUDED
-# define COLORS_INCLUDED
+#pragma once
+
/**
* A module handling the conversion between IRC colors and XHTML-IM, and
@@ -53,4 +53,4 @@ static const char irc_format_char[] = {
*/
Xmpp::body irc_format_to_xhtmlim(const std::string& str);
-#endif // COLORS_INCLUDED
+
diff --git a/src/bridge/list_element.hpp b/src/bridge/list_element.hpp
index bd28185..1eff2ee 100644
--- a/src/bridge/list_element.hpp
+++ b/src/bridge/list_element.hpp
@@ -1,5 +1,5 @@
-#ifndef LIST_ELEMENT_HPP_INCLUDED
-#define LIST_ELEMENT_HPP_INCLUDED
+#pragma once
+
#include <string>
@@ -16,4 +16,4 @@ struct ListElement
std::string topic;
};
-#endif /* LIST_ELEMENT_HPP_INCLUDED */
+
diff --git a/src/database/database.hpp b/src/database/database.hpp
index 7bd41a3..0131669 100644
--- a/src/database/database.hpp
+++ b/src/database/database.hpp
@@ -1,5 +1,5 @@
-#ifndef DATABASE_HPP_INCLUDED
-#define DATABASE_HPP_INCLUDED
+#pragma once
+
#include <biboumi.h>
#ifdef USE_DATABASE
@@ -50,4 +50,4 @@ private:
};
#endif /* USE_DATABASE */
-#endif /* DATABASE_HPP_INCLUDED */
+
diff --git a/src/irc/iid.hpp b/src/irc/iid.hpp
index a55ae21..3b11470 100644
--- a/src/irc/iid.hpp
+++ b/src/irc/iid.hpp
@@ -1,5 +1,5 @@
-#ifndef IID_INCLUDED
-# define IID_INCLUDED
+#pragma once
+
#include <string>
@@ -76,4 +76,4 @@ namespace std {
const std::string to_string(const Iid& iid);
}
-#endif // IID_INCLUDED
+
diff --git a/src/irc/irc_channel.hpp b/src/irc/irc_channel.hpp
index 3319505..2bcefaf 100644
--- a/src/irc/irc_channel.hpp
+++ b/src/irc/irc_channel.hpp
@@ -1,5 +1,5 @@
-#ifndef IRC_CHANNEL_INCLUDED
-# define IRC_CHANNEL_INCLUDED
+#pragma once
+
#include <irc/irc_user.hpp>
#include <memory>
@@ -67,4 +67,4 @@ public:
bool joining;
};
-#endif // IRC_CHANNEL_INCLUDED
+
diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp
index 718d8a7..fc3918e 100644
--- a/src/irc/irc_client.hpp
+++ b/src/irc/irc_client.hpp
@@ -1,5 +1,5 @@
-#ifndef IRC_CLIENT_INCLUDED
-# define IRC_CLIENT_INCLUDED
+#pragma once
+
#include <irc/irc_message.hpp>
#include <irc/irc_channel.hpp>
@@ -380,4 +380,4 @@ private:
Resolver dns_resolver;
};
-#endif // IRC_CLIENT_INCLUDED
+
diff --git a/src/irc/irc_message.hpp b/src/irc/irc_message.hpp
index 29ed946..fe954e4 100644
--- a/src/irc/irc_message.hpp
+++ b/src/irc/irc_message.hpp
@@ -1,5 +1,5 @@
-#ifndef IRC_MESSAGE_INCLUDED
-# define IRC_MESSAGE_INCLUDED
+#pragma once
+
#include <vector>
#include <string>
@@ -25,4 +25,4 @@ public:
std::ostream& operator<<(std::ostream& os, const IrcMessage& message);
-#endif // IRC_MESSAGE_INCLUDED
+
diff --git a/src/irc/irc_user.hpp b/src/irc/irc_user.hpp
index 4b6cd7a..c84030e 100644
--- a/src/irc/irc_user.hpp
+++ b/src/irc/irc_user.hpp
@@ -1,5 +1,5 @@
-#ifndef IRC_USER_INCLUDED
-# define IRC_USER_INCLUDED
+#pragma once
+
#include <vector>
#include <string>
@@ -30,4 +30,4 @@ public:
std::set<char> modes;
};
-#endif // IRC_USER_INCLUDED
+
diff --git a/src/utils/empty_if_fixed_server.hpp b/src/utils/empty_if_fixed_server.hpp
index 8739fd9..9ccf5fd 100644
--- a/src/utils/empty_if_fixed_server.hpp
+++ b/src/utils/empty_if_fixed_server.hpp
@@ -1,5 +1,5 @@
-#ifndef EMPTY_IF_FIXED_SERVER_HPP_INCLUDED
-#define EMPTY_IF_FIXED_SERVER_HPP_INCLUDED
+#pragma once
+
#include <string>
@@ -23,4 +23,4 @@ namespace utils
}
-#endif /* EMPTY_IF_FIXED_SERVER_HPP_INCLUDED */
+
diff --git a/src/xmpp/biboumi_adhoc_commands.hpp b/src/xmpp/biboumi_adhoc_commands.hpp
index ffa8be4..2763a9f 100644
--- a/src/xmpp/biboumi_adhoc_commands.hpp
+++ b/src/xmpp/biboumi_adhoc_commands.hpp
@@ -1,5 +1,5 @@
-#ifndef BIBOUMI_ADHOC_COMMANDS_HPP_INCLUDED
-#define BIBOUMI_ADHOC_COMMANDS_HPP_INCLUDED
+#pragma once
+
#include <xmpp/adhoc_command.hpp>
#include <xmpp/adhoc_session.hpp>
@@ -20,4 +20,4 @@ void DisconnectUserFromServerStep1(XmppComponent&, AdhocSession& session, XmlNod
void DisconnectUserFromServerStep2(XmppComponent&, AdhocSession& session, XmlNode& command_node);
void DisconnectUserFromServerStep3(XmppComponent&, AdhocSession& session, XmlNode& command_node);
-#endif /* BIBOUMI_ADHOC_COMMANDS_HPP_INCLUDED */
+
diff --git a/src/xmpp/biboumi_component.hpp b/src/xmpp/biboumi_component.hpp
index 0eb3bc4..24d768a 100644
--- a/src/xmpp/biboumi_component.hpp
+++ b/src/xmpp/biboumi_component.hpp
@@ -1,5 +1,5 @@
-#ifndef BIBOUMI_COMPONENT_INCLUDED
-# define BIBOUMI_COMPONENT_INCLUDED
+#pragma once
+
#include <xmpp/xmpp_component.hpp>
@@ -106,4 +106,4 @@ private:
AdhocCommandsHandler irc_channel_adhoc_commands_handler;
};
-#endif // BIBOUMI_COMPONENT_INCLUDED
+