Applied project style to multiple files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user