소스 검색

configure_system: Simplify UUID generation call in AddUser()

This is a static function so we can just perform an assignment directly.
Lioncash 7 년 전
부모
커밋
8806e69f59
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/yuzu/configuration/configure_system.cpp

+ 1 - 2
src/yuzu/configuration/configure_system.cpp

@@ -232,8 +232,7 @@ void ConfigureSystem::SelectUser(const QModelIndex& index) {
 }
 
 void ConfigureSystem::AddUser() {
-    Service::Account::UUID uuid;
-    uuid.Generate();
+    const auto uuid = Service::Account::UUID::Generate();
 
     bool ok = false;
     const auto username =