From 57b21cffb3bc99541d5b30ae18e60187d27a5b24 Mon Sep 17 00:00:00 2001 From: fourtf Date: Wed, 13 Jun 2018 13:29:11 +0200 Subject: [PATCH] changed emplace to push_back --- src/widgets/helper/channelview.cpp | 2 +- src/widgets/helper/splitinput.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/helper/channelview.cpp b/src/widgets/helper/channelview.cpp index 2ba2327a..358443ff 100644 --- a/src/widgets/helper/channelview.cpp +++ b/src/widgets/helper/channelview.cpp @@ -45,7 +45,7 @@ ChannelView::ChannelView(BaseWidget *parent) this->setMouseTracking(true); - this->connections_.emplace_back(app->settings->wordFlagsChanged.connect([this] { + this->connections_.push_back(app->settings->wordFlagsChanged.connect([this] { this->layoutMessages(); this->update(); })); diff --git a/src/widgets/helper/splitinput.cpp b/src/widgets/helper/splitinput.cpp index c1ffe7dd..ec12ebb0 100644 --- a/src/widgets/helper/splitinput.cpp +++ b/src/widgets/helper/splitinput.cpp @@ -70,7 +70,7 @@ void SplitInput::initLayout() this->ui_.textEdit->setFont( app->fonts->getFont(singletons::FontManager::Type::ChatMedium, this->getScale())); - this->managedConnections_.emplace_back(app->fonts->fontChanged.connect([=]() { + this->managedConnections_.push_back(app->fonts->fontChanged.connect([=]() { this->ui_.textEdit->setFont( app->fonts->getFont(singletons::FontManager::Type::ChatMedium, this->getScale())); }));