summary refs log tree commit diff
path: root/src/HistoryView.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-06 19:56:33 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-06 19:56:33 +0300
commit73e73f46eaff4f2236b31ed5858738c6b5e26ea3 (patch)
tree3af375ca4be03bacb34aa72b173dd22a9f792380 /src/HistoryView.cc
parentInitialize sync timer (diff)
downloadnheko-73e73f46eaff4f2236b31ed5858738c6b5e26ea3.tar.xz
Use const refs for the deserialized data
Diffstat (limited to 'src/HistoryView.cc')
-rw-r--r--src/HistoryView.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HistoryView.cc b/src/HistoryView.cc

index 0949d17c..3775db9a 100644 --- a/src/HistoryView.cc +++ b/src/HistoryView.cc
@@ -50,7 +50,7 @@ const QList<QString> HistoryView::COLORS({"#FFF46E", "#a2b636", "#4BBE2E"}); -HistoryView::HistoryView(QList<Event> events, QWidget *parent) +HistoryView::HistoryView(const QList<Event> &events, QWidget *parent) : QWidget(parent) { init(); @@ -133,7 +133,7 @@ void HistoryView::init() SLOT(sliderRangeChanged(int, int))); } -void HistoryView::addHistoryItem(Event event, QString color, bool with_sender) +void HistoryView::addHistoryItem(const Event &event, const QString &color, bool with_sender) { // TODO: Probably create another function instead of passing the flag. HistoryViewItem *item = new HistoryViewItem(event, with_sender, color, scroll_widget_);