mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
changed emplace to push_back
This commit is contained in:
parent
ae4cdbd5ab
commit
57b21cffb3
|
@ -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();
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -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()));
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue