Clang formatting

This commit is contained in:
Godkratos
2020-05-18 01:01:40 +12:00
parent c2522f3e43
commit de1ef273b3
+12 -12
View File
@@ -137,22 +137,22 @@ __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
namespace {
QString GetAccountUsername() {
Service::Account::ProfileManager manager;
const auto current_user = manager.GetUser(Settings::values.current_user);
ASSERT(current_user);
Service::Account::ProfileBase profile;
if (!manager.GetProfileBase(*current_user, profile)) {
return {};
}
const auto text = Common::StringFromFixedZeroTerminatedBuffer(
reinterpret_cast<const char*>(profile.username.data()), profile.username.size());
return QString::fromStdString(text);
QString GetAccountUsername() {
Service::Account::ProfileManager manager;
const auto current_user = manager.GetUser(Settings::values.current_user);
ASSERT(current_user);
Service::Account::ProfileBase profile;
if (!manager.GetProfileBase(*current_user, profile)) {
return {};
}
const auto text = Common::StringFromFixedZeroTerminatedBuffer(
reinterpret_cast<const char*>(profile.username.data()), profile.username.size());
return QString::fromStdString(text);
}
} // Anonymous namespace
constexpr int default_mouse_timeout = 2500;
constexpr u64 DLC_BASE_TITLE_ID_MASK = 0xFFFFFFFFFFFFE000;