Merge pull request #4735 from FearlessTobi/port-2388

Port yuzu-emu/yuzu#2388: "kernel: Make handle type declarations constexpr"
This commit is contained in:
Weiyi Wang 2019-04-15 13:33:38 -04:00 committed by GitHub
commit bbc8fd7165
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 14 additions and 14 deletions

View file

@ -42,7 +42,7 @@ public:
return name;
}
static const HandleType HANDLE_TYPE = HandleType::AddressArbiter;
static constexpr HandleType HANDLE_TYPE = HandleType::AddressArbiter;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}

View file

@ -28,7 +28,7 @@ public:
return name;
}
static const HandleType HANDLE_TYPE = HandleType::ClientPort;
static constexpr HandleType HANDLE_TYPE = HandleType::ClientPort;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}

View file

@ -30,7 +30,7 @@ public:
return name;
}
static const HandleType HANDLE_TYPE = HandleType::ClientSession;
static constexpr HandleType HANDLE_TYPE = HandleType::ClientSession;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}

View file

@ -25,7 +25,7 @@ public:
this->name = name;
}
static const HandleType HANDLE_TYPE = HandleType::Event;
static constexpr HandleType HANDLE_TYPE = HandleType::Event;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}

View file

@ -27,7 +27,7 @@ public:
return name;
}
static const HandleType HANDLE_TYPE = HandleType::Mutex;
static constexpr HandleType HANDLE_TYPE = HandleType::Mutex;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}

View file

@ -68,7 +68,7 @@ public:
return name;
}
static const HandleType HANDLE_TYPE = HandleType::CodeSet;
static constexpr HandleType HANDLE_TYPE = HandleType::CodeSet;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}
@ -120,7 +120,7 @@ public:
return codeset->name;
}
static const HandleType HANDLE_TYPE = HandleType::Process;
static constexpr HandleType HANDLE_TYPE = HandleType::Process;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}

View file

@ -49,7 +49,7 @@ public:
return name;
}
static const HandleType HANDLE_TYPE = HandleType::ResourceLimit;
static constexpr HandleType HANDLE_TYPE = HandleType::ResourceLimit;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}

View file

@ -25,7 +25,7 @@ public:
return name;
}
static const HandleType HANDLE_TYPE = HandleType::Semaphore;
static constexpr HandleType HANDLE_TYPE = HandleType::Semaphore;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}

View file

@ -30,7 +30,7 @@ public:
return name;
}
static const HandleType HANDLE_TYPE = HandleType::ServerPort;
static constexpr HandleType HANDLE_TYPE = HandleType::ServerPort;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}

View file

@ -47,7 +47,7 @@ public:
return "ServerSession";
}
static const HandleType HANDLE_TYPE = HandleType::ServerSession;
static constexpr HandleType HANDLE_TYPE = HandleType::ServerSession;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}

View file

@ -28,7 +28,7 @@ public:
this->name = std::move(name);
}
static const HandleType HANDLE_TYPE = HandleType::SharedMemory;
static constexpr HandleType HANDLE_TYPE = HandleType::SharedMemory;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}

View file

@ -160,7 +160,7 @@ public:
return "Thread";
}
static const HandleType HANDLE_TYPE = HandleType::Thread;
static constexpr HandleType HANDLE_TYPE = HandleType::Thread;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}

View file

@ -47,7 +47,7 @@ public:
return name;
}
static const HandleType HANDLE_TYPE = HandleType::Timer;
static constexpr HandleType HANDLE_TYPE = HandleType::Timer;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
}