summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-12-24 13:30:07 -0500
committerGravatar Zach Hilman2019-04-25 08:07:57 -0400
commitf0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb (patch)
tree9a89f82fd9ac54d69bf7c4a2412689fe816aba41 /src/common
parentmii: Implement IDatabaseService commands using MiiManager (diff)
downloadyuzu-f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb.tar.gz
yuzu-f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb.tar.xz
yuzu-f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb.zip
mii_manager: Cleanup and optimization
Diffstat (limited to 'src/common')
-rw-r--r--src/common/uuid.cpp2
-rw-r--r--src/common/uuid.h6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/common/uuid.cpp b/src/common/uuid.cpp
index 8e63b58b8..26db03fba 100644
--- a/src/common/uuid.cpp
+++ b/src/common/uuid.cpp
@@ -1,4 +1,4 @@
1// Copyright 2018 Citra Emulator Project 1// Copyright 2018 yuzu Emulator Project
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
diff --git a/src/common/uuid.h b/src/common/uuid.h
index 4a5e5fa7c..b8864b34f 100644
--- a/src/common/uuid.h
+++ b/src/common/uuid.h
@@ -1,9 +1,11 @@
1// Copyright 2018 Citra Emulator Project 1// Copyright 2018 yuzu Emulator Project
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#pragma once 5#pragma once
6 6
7#include <string>
8
7#include "common/common_types.h" 9#include "common/common_types.h"
8 10
9namespace Common { 11namespace Common {
@@ -33,7 +35,7 @@ struct UUID {
33 static UUID Generate(); 35 static UUID Generate();
34 36
35 // Set the UUID to {0,0} to be considered an invalid user 37 // Set the UUID to {0,0} to be considered an invalid user
36 void Invalidate() { 38 constexpr void Invalidate() {
37 uuid = INVALID_UUID; 39 uuid = INVALID_UUID;
38 } 40 }
39 41