mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
31 lines
608 B
C++
31 lines
608 B
C++
|
#include "account.hpp"
|
||
|
|
||
|
namespace chatterino {
|
||
|
namespace controllers {
|
||
|
namespace accounts {
|
||
|
|
||
|
Account::Account(const QString &category)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
const QString &Account::getCategory() const
|
||
|
{
|
||
|
return this->category;
|
||
|
}
|
||
|
|
||
|
bool Account::operator<(const Account &other) const
|
||
|
{
|
||
|
if (this->category < other.category) {
|
||
|
return true;
|
||
|
} else if (this->category == other.category) {
|
||
|
if (this->toString() < other.toString()) {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
} // namespace accounts
|
||
|
} // namespace controllers
|
||
|
} // namespace chatterino
|