changed emplace to push_back

This commit is contained in:
fourtf 2018-06-13 13:29:11 +02:00
parent ae4cdbd5ab
commit 57b21cffb3
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ ChannelView::ChannelView(BaseWidget *parent)
this->setMouseTracking(true); this->setMouseTracking(true);
this->connections_.emplace_back(app->settings->wordFlagsChanged.connect([this] { this->connections_.push_back(app->settings->wordFlagsChanged.connect([this] {
this->layoutMessages(); this->layoutMessages();
this->update(); this->update();
})); }));

View file

@ -70,7 +70,7 @@ void SplitInput::initLayout()
this->ui_.textEdit->setFont( this->ui_.textEdit->setFont(
app->fonts->getFont(singletons::FontManager::Type::ChatMedium, this->getScale())); 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( this->ui_.textEdit->setFont(
app->fonts->getFont(singletons::FontManager::Type::ChatMedium, this->getScale())); app->fonts->getFont(singletons::FontManager::Type::ChatMedium, this->getScale()));
})); }));