aboutsummaryrefslogtreecommitdiff
path: root/events/roommessageevent.h
diff options
context:
space:
mode:
authorMalte Brandy <malte.brandy@maralorn.de>2016-11-06 12:38:04 +0100
committerMalte Brandy <malte.brandy@maralorn.de>2016-11-06 12:38:04 +0100
commit3249179dda1a6e624c1ccbe98ed4503eebed60a0 (patch)
tree198aad0c4dd901dcc18614628200bf8ae04ecd3c /events/roommessageevent.h
parent9a1270dbf8cf6c2dc9337c33a3c59b437676548c (diff)
downloadlibquotient-3249179dda1a6e624c1ccbe98ed4503eebed60a0.tar.gz
libquotient-3249179dda1a6e624c1ccbe98ed4503eebed60a0.zip
Use #pragma once everywhere
Diffstat (limited to 'events/roommessageevent.h')
-rw-r--r--events/roommessageevent.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/events/roommessageevent.h b/events/roommessageevent.h
index 591b2df9..67789ef7 100644
--- a/events/roommessageevent.h
+++ b/events/roommessageevent.h
@@ -16,8 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef QMATRIXCLIENT_ROOMMESSAGEEVENT_H
-#define QMATRIXCLIENT_ROOMMESSAGEEVENT_H
+#pragma once
#include <QtCore/QUrl>
#include <QtCore/QMimeType>
@@ -42,7 +41,7 @@ namespace QMatrixClient
public:
RoomMessageEvent();
virtual ~RoomMessageEvent();
-
+
QString userId() const;
MessageEventType msgtype() const;
@@ -57,9 +56,9 @@ namespace QMatrixClient
QString body() const;
MessageEventContent::Base* content() const;
-
+
static RoomMessageEvent* fromJson( const QJsonObject& obj );
-
+
private:
class Private;
Private* d;
@@ -145,5 +144,3 @@ namespace QMatrixClient
using AudioContent = ThumbnailedContent<AudioInfo>;
}
}
-
-#endif // QMATRIXCLIENT_ROOMMESSAGEEVENT_H