summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-13 04:32:18 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-13 04:32:18 +0300
commitbb03a402d7a6a1a93d3c6b809126dcc37c95fbb3 (patch)
tree7b17a0f5d3fe6c9970a29dfd18eccd2c5fcff841 /include
parentInitial implementation for local echo (diff)
downloadnheko-bb03a402d7a6a1a93d3c6b809126dcc37c95fbb3.tar.xz
Add proper struct initialization
Diffstat (limited to 'include')
-rw-r--r--include/HistoryView.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/HistoryView.h b/include/HistoryView.h
index ba267ad4..09f8bdce 100644
--- a/include/HistoryView.h
+++ b/include/HistoryView.h
@@ -34,6 +34,14 @@ struct PendingMessage {
 	QString body;
 	QString event_id;
 	HistoryViewItem *widget;
+
+	PendingMessage(int txn_id, QString body, QString event_id, HistoryViewItem *widget)
+	    : txn_id(txn_id)
+	    , body(body)
+	    , event_id(event_id)
+	    , widget(widget)
+	{
+	}
 };
 
 class HistoryView : public QWidget