summary refs log tree commit diff
path: root/include/events
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-16 21:46:45 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-16 21:46:45 +0300
commit6553aa61a1d99bc90f29cec636ed1c68fb2122b9 (patch)
treeee8663371ea996c26ae5e7a99ce64658e84f9ab1 /include/events
parentAdd geometry animation on emoji picker (diff)
downloadnheko-6553aa61a1d99bc90f29cec636ed1c68fb2122b9.tar.xz
Replace include guards with #pragma once
Diffstat (limited to 'include/events')
-rw-r--r--include/events/AliasesEventContent.h5
-rw-r--r--include/events/AvatarEventContent.h5
-rw-r--r--include/events/CanonicalAliasEventContent.h6
-rw-r--r--include/events/CreateEventContent.h5
-rw-r--r--include/events/Event.h5
-rw-r--r--include/events/HistoryVisibilityEventContent.h5
-rw-r--r--include/events/JoinRulesEventContent.h5
-rw-r--r--include/events/MemberEventContent.h5
-rw-r--r--include/events/MessageEvent.h5
-rw-r--r--include/events/MessageEventContent.h5
-rw-r--r--include/events/NameEventContent.h5
-rw-r--r--include/events/PowerLevelsEventContent.h5
-rw-r--r--include/events/RoomEvent.h5
-rw-r--r--include/events/StateEvent.h5
-rw-r--r--include/events/TopicEventContent.h5
-rw-r--r--include/events/messages/Audio.h5
-rw-r--r--include/events/messages/Emote.h6
-rw-r--r--include/events/messages/File.h5
-rw-r--r--include/events/messages/Image.h5
-rw-r--r--include/events/messages/Location.h5
-rw-r--r--include/events/messages/Notice.h5
-rw-r--r--include/events/messages/Text.h5
-rw-r--r--include/events/messages/Video.h5
23 files changed, 23 insertions, 94 deletions
diff --git a/include/events/AliasesEventContent.h b/include/events/AliasesEventContent.h

index 44224fd9..a21aefd4 100644 --- a/include/events/AliasesEventContent.h +++ b/include/events/AliasesEventContent.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef ALIASES_EVENT_CONTENT_H -#define ALIASES_EVENT_CONTENT_H +#pragma once #include <QJsonValue> #include <QList> @@ -44,5 +43,3 @@ inline QList<QString> AliasesEventContent::aliases() const } } // namespace events } // namespace matrix - -#endif // ALIASES_EVENT_CONTENT_H diff --git a/include/events/AvatarEventContent.h b/include/events/AvatarEventContent.h
index adf85b1f..fa6997e0 100644 --- a/include/events/AvatarEventContent.h +++ b/include/events/AvatarEventContent.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef AVATAR_EVENT_CONTENT_H -#define AVATAR_EVENT_CONTENT_H +#pragma once #include <QJsonValue> #include <QUrl> @@ -48,5 +47,3 @@ inline QUrl AvatarEventContent::url() const } } // namespace events } // namespace matrix - -#endif // AVATAR_EVENT_CONTENT_H diff --git a/include/events/CanonicalAliasEventContent.h b/include/events/CanonicalAliasEventContent.h
index bcaf514b..00df6207 100644 --- a/include/events/CanonicalAliasEventContent.h +++ b/include/events/CanonicalAliasEventContent.h
@@ -1,4 +1,3 @@ - /* * nheko Copyright (C) 2017 Konstantinos Sideris <siderisk@auth.gr> * @@ -16,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef CANONICAL_ALIAS_EVENT_CONTENT_H -#define CANONICAL_ALIAS_EVENT_CONTENT_H +#pragma once #include <QJsonValue> @@ -51,5 +49,3 @@ inline QString CanonicalAliasEventContent::alias() const } } // namespace events } // namespace matrix - -#endif // CANONICAL_ALIAS_EVENT_CONTENT_H diff --git a/include/events/CreateEventContent.h b/include/events/CreateEventContent.h
index d48b8769..a0e40fb8 100644 --- a/include/events/CreateEventContent.h +++ b/include/events/CreateEventContent.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef CREATE_EVENT_CONTENT_H -#define CREATE_EVENT_CONTENT_H +#pragma once #include <QJsonValue> @@ -48,5 +47,3 @@ inline QString CreateEventContent::creator() const } } // namespace events } // namespace matrix - -#endif // CREATE_EVENT_CONTENT_H diff --git a/include/events/Event.h b/include/events/Event.h
index e5a71c39..ea3eecea 100644 --- a/include/events/Event.h +++ b/include/events/Event.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MATRIX_EVENT_H -#define MATRIX_EVENT_H +#pragma once #include <QJsonValue> @@ -96,5 +95,3 @@ void Event<Content>::deserialize(const QJsonValue &data) } } // namespace events } // namespace matrix - -#endif // MATRIX_EVENT_H diff --git a/include/events/HistoryVisibilityEventContent.h b/include/events/HistoryVisibilityEventContent.h
index 7b00d85e..1df83d09 100644 --- a/include/events/HistoryVisibilityEventContent.h +++ b/include/events/HistoryVisibilityEventContent.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef HISTORY_VISIBILITY_EVENT_CONTENT_H -#define HISTORY_VISIBILITY_EVENT_CONTENT_H +#pragma once #include <QJsonValue> @@ -50,5 +49,3 @@ inline HistoryVisibility HistoryVisibilityEventContent::historyVisibility() cons } } // namespace events } // namespace matrix - -#endif // HISTORY_VISIBILITY_EVENT_CONTENT_H diff --git a/include/events/JoinRulesEventContent.h b/include/events/JoinRulesEventContent.h
index 9b3d27c3..746188e4 100644 --- a/include/events/JoinRulesEventContent.h +++ b/include/events/JoinRulesEventContent.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef JOIN_RULES_EVENT_CONTENT_H -#define JOIN_RULES_EVENT_CONTENT_H +#pragma once #include <QJsonValue> @@ -62,5 +61,3 @@ inline JoinRule JoinRulesEventContent::joinRule() const } } // namespace events } // namespace matrix - -#endif // JOIN_RULES_EVENT_CONTENT_H diff --git a/include/events/MemberEventContent.h b/include/events/MemberEventContent.h
index 9fd1d7d9..f3714462 100644 --- a/include/events/MemberEventContent.h +++ b/include/events/MemberEventContent.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MEMBER_EVENT_CONTENT_H -#define MEMBER_EVENT_CONTENT_H +#pragma once #include <QJsonValue> #include <QUrl> @@ -79,5 +78,3 @@ inline Membership MemberEventContent::membershipState() const } } // namespace events } // namespace matrix - -#endif // MEMBER_EVENT_CONTENT_H diff --git a/include/events/MessageEvent.h b/include/events/MessageEvent.h
index 617514b0..d1fb1b4a 100644 --- a/include/events/MessageEvent.h +++ b/include/events/MessageEvent.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MATRIX_MESSAGE_EVENT_H -#define MATRIX_MESSAGE_EVENT_H +#pragma once #include "MessageEventContent.h" #include "RoomEvent.h" @@ -63,5 +62,3 @@ struct ThumbnailInfo { } // namespace messages } // namespace events } // namespace matrix - -#endif // MATRIX_MESSAGE_EVENT_H diff --git a/include/events/MessageEventContent.h b/include/events/MessageEventContent.h
index 1ef730ed..a9d7e470 100644 --- a/include/events/MessageEventContent.h +++ b/include/events/MessageEventContent.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MESSAGE_EVENT_CONTENT_H -#define MESSAGE_EVENT_CONTENT_H +#pragma once #include <QJsonValue> @@ -74,5 +73,3 @@ inline QString MessageEventContent::body() const } } // namespace events } // namespace matrix - -#endif // MESSAGE_EVENT_CONTENT_H diff --git a/include/events/NameEventContent.h b/include/events/NameEventContent.h
index 970edab8..bf5a9209 100644 --- a/include/events/NameEventContent.h +++ b/include/events/NameEventContent.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef NAME_EVENT_CONTENT_H -#define NAME_EVENT_CONTENT_H +#pragma once #include <QJsonValue> @@ -47,5 +46,3 @@ inline QString NameEventContent::name() const } } // namespace events } // namespace matrix - -#endif // NAME_EVENT_CONTENT_H diff --git a/include/events/PowerLevelsEventContent.h b/include/events/PowerLevelsEventContent.h
index bac4a42b..e5762812 100644 --- a/include/events/PowerLevelsEventContent.h +++ b/include/events/PowerLevelsEventContent.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef POWER_LEVELS_EVENT_CONTENT_H -#define POWER_LEVELS_EVENT_CONTENT_H +#pragma once #include <QJsonValue> #include <QMap> @@ -104,5 +103,3 @@ inline int PowerLevelsEventContent::usersDefaultLevel() const } } // namespace events } // namespace matrix - -#endif // POWER_LEVELS_EVENT_CONTENT_H diff --git a/include/events/RoomEvent.h b/include/events/RoomEvent.h
index 9c2e9945..b73d5ce9 100644 --- a/include/events/RoomEvent.h +++ b/include/events/RoomEvent.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MATRIX_ROOM_EVENT_H -#define MATRIX_ROOM_EVENT_H +#pragma once #include <QJsonValue> #include <QString> @@ -97,5 +96,3 @@ void RoomEvent<Content>::deserialize(const QJsonValue &data) } } // namespace events } // namespace matrix - -#endif // MATRIX_ROOM_EVENT_H diff --git a/include/events/StateEvent.h b/include/events/StateEvent.h
index 35d5fa31..2075a996 100644 --- a/include/events/StateEvent.h +++ b/include/events/StateEvent.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MATRIX_STATE_EVENT_H -#define MATRIX_STATE_EVENT_H +#pragma once #include <QJsonValue> @@ -69,5 +68,3 @@ void StateEvent<Content>::deserialize(const QJsonValue &data) } } // namespace events } // namespace matrix - -#endif // MATRIX_STATE_EVENT_H diff --git a/include/events/TopicEventContent.h b/include/events/TopicEventContent.h
index e3062d0c..460d019e 100644 --- a/include/events/TopicEventContent.h +++ b/include/events/TopicEventContent.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef TOPIC_EVENT_CONTENT_H -#define TOPIC_EVENT_CONTENT_H +#pragma once #include <QJsonValue> @@ -47,5 +46,3 @@ inline QString TopicEventContent::topic() const } } // namespace events } // namespace matrix - -#endif // TOPIC_EVENT_CONTENT_H diff --git a/include/events/messages/Audio.h b/include/events/messages/Audio.h
index c3b5a4ef..3eeb5fc4 100644 --- a/include/events/messages/Audio.h +++ b/include/events/messages/Audio.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MESSAGE_EVENT_AUDIO_H -#define MESSAGE_EVENT_AUDIO_H +#pragma once #include <QJsonObject> @@ -61,5 +60,3 @@ inline AudioInfo Audio::info() const } // namespace messages } // namespace events } // namespace matrix - -#endif // MESSAGE_EVENT_AUDIO_H diff --git a/include/events/messages/Emote.h b/include/events/messages/Emote.h
index 63b2b96b..28118b1a 100644 --- a/include/events/messages/Emote.h +++ b/include/events/messages/Emote.h
@@ -1,4 +1,3 @@ - /* * nheko Copyright (C) 2017 Konstantinos Sideris <siderisk@auth.gr> * @@ -16,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MESSAGE_EVENT_EMOTE_H -#define MESSAGE_EVENT_EMOTE_H +#pragma once #include <QJsonObject> @@ -37,5 +35,3 @@ public: } // namespace messages } // namespace events } // namespace matrix - -#endif // MESSAGE_EVENT_EMOTE_H diff --git a/include/events/messages/File.h b/include/events/messages/File.h
index 8fe61615..59e0ec15 100644 --- a/include/events/messages/File.h +++ b/include/events/messages/File.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MESSAGE_EVENT_FILE_H -#define MESSAGE_EVENT_FILE_H +#pragma once #include <QJsonObject> @@ -72,5 +71,3 @@ inline FileInfo File::info() const } // namespace messages } // namespace events } // namespace matrix - -#endif // MESSAGE_EVENT_FILE_H diff --git a/include/events/messages/Image.h b/include/events/messages/Image.h
index 5a329e4d..d73aa5c8 100644 --- a/include/events/messages/Image.h +++ b/include/events/messages/Image.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MESSAGE_EVENT_IMAGE_H -#define MESSAGE_EVENT_IMAGE_H +#pragma once #include <QJsonObject> @@ -65,5 +64,3 @@ inline ImageInfo Image::info() const } // namespace messages } // namespace events } // namespace matrix - -#endif // MESSAGE_EVENT_IMAGE_H diff --git a/include/events/messages/Location.h b/include/events/messages/Location.h
index 7c64cede..c245112b 100644 --- a/include/events/messages/Location.h +++ b/include/events/messages/Location.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MESSAGE_EVENT_LOCATION_H -#define MESSAGE_EVENT_LOCATION_H +#pragma once #include <QJsonObject> @@ -61,5 +60,3 @@ inline LocationInfo Location::info() const } // namespace messages } // namespace events } // namespace matrix - -#endif // MESSAGE_EVENT_LOCATION_H diff --git a/include/events/messages/Notice.h b/include/events/messages/Notice.h
index db94b273..4ea9b11f 100644 --- a/include/events/messages/Notice.h +++ b/include/events/messages/Notice.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MESSAGE_EVENT_NOTICE_H -#define MESSAGE_EVENT_NOTICE_H +#pragma once #include <QJsonObject> @@ -36,5 +35,3 @@ public: } // namespace messages } // namespace events } // namespace matrix - -#endif // MESSAGE_EVENT_NOTICE_H diff --git a/include/events/messages/Text.h b/include/events/messages/Text.h
index f116e78d..e98a4c1b 100644 --- a/include/events/messages/Text.h +++ b/include/events/messages/Text.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MESSAGE_EVENT_TEXT_H -#define MESSAGE_EVENT_TEXT_H +#pragma once #include <QJsonObject> @@ -36,5 +35,3 @@ public: } // namespace messages } // namespace events } // namespace matrix - -#endif // MESSAGE_EVENT_TEXT_H diff --git a/include/events/messages/Video.h b/include/events/messages/Video.h
index bd307cf7..3a373928 100644 --- a/include/events/messages/Video.h +++ b/include/events/messages/Video.h
@@ -15,8 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MESSAGE_EVENT_VIDEO_H -#define MESSAGE_EVENT_VIDEO_H +#pragma once #include <QJsonObject> @@ -66,5 +65,3 @@ inline VideoInfo Video::info() const } // namespace messages } // namespace events } // namespace matrix - -#endif // MESSAGE_EVENT_VIDEO_H