reformat channel.cpp KKona

This commit is contained in:
Rasmus Karlsson 2017-03-11 11:39:59 +01:00
parent 0ace6d2bc8
commit 8ef492d7ae

View file

@ -11,6 +11,7 @@
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <memory>
namespace chatterino {
@ -62,11 +63,11 @@ Channel::reloadBttvEmotes()
tmp.replace("{{id}}", id).replace("{{image}}", "1x");
this->getBttvChannelEmotes().insert(
code,
Emotes::getBttvChannelEmoteFromCaches().getOrAdd(
code, Emotes::getBttvChannelEmoteFromCaches().getOrAdd(
id, [&code, &url] {
return new messages::LazyLoadedImage(
url, 1, code, code + "\nChannel Bttv Emote");
url, 1, code,
code + "\nChannel Bttv Emote");
}));
}
}
@ -109,11 +110,11 @@ Channel::reloadFfzEmotes()
QString url1 = "http:" + urls.value("1").toString();
this->getFfzChannelEmotes().insert(
code,
Emotes::getFfzChannelEmoteFromCaches().getOrAdd(
code, Emotes::getFfzChannelEmoteFromCaches().getOrAdd(
id, [&code, &url1] {
return new messages::LazyLoadedImage(
url1, 1, code, code + "\nGlobal Ffz Emote");
url1, 1, code,
code + "\nGlobal Ffz Emote");
}));
}
}