Applied project style to multiple files

This commit is contained in:
fourtf
2018-07-06 18:10:21 +02:00
parent 3993708164
commit 535c0616a3
26 changed files with 149 additions and 157 deletions
+7 -7
View File
@@ -4,13 +4,13 @@
namespace chatterino {
Account::Account(ProviderId _providerId)
: providerId(_providerId)
Account::Account(ProviderId providerId)
: providerId_(providerId)
{
static QString twitch("Twitch");
this->category = [&]() {
switch (_providerId) {
this->category_ = [&]() {
switch (providerId) {
case ProviderId::Twitch:
return twitch;
}
@@ -20,12 +20,12 @@ Account::Account(ProviderId _providerId)
const QString &Account::getCategory() const
{
return this->category;
return this->category_;
}
ProviderId Account::getProviderId() const
{
return this->providerId;
return this->providerId_;
}
bool Account::operator<(const Account &other) const
@@ -33,7 +33,7 @@ bool Account::operator<(const Account &other) const
QString a = this->toString();
QString b = other.toString();
return std::tie(this->category, a) < std::tie(other.category, b);
return std::tie(this->category_, a) < std::tie(other.category_, b);
}
} // namespace chatterino