common/uuid: Add validity checking functions to interface
Given we have a function to invalidate, we should also have ones to query the validity. Also makes the code more straightforward to read.
This commit is contained in:
parent
7b22d61fb1
commit
40314cc586
4 changed files with 14 additions and 7 deletions
|
@ -60,7 +60,7 @@ void ProfileSelect::Execute() {
|
|||
void ProfileSelect::SelectionComplete(std::optional<Common::UUID> uuid) {
|
||||
UserSelectionOutput output{};
|
||||
|
||||
if (uuid.has_value() && uuid->uuid != Common::INVALID_UUID) {
|
||||
if (uuid.has_value() && uuid->IsValid()) {
|
||||
output.result = 0;
|
||||
output.uuid_selected = uuid->uuid;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue