From 66a99317ab749914124019e6d52d83abeec9804b Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 6 Jan 2024 09:20:01 +0100 Subject: GUIDWizard: replace if with MUST_PASS. Signed-off-by: Amlal El Mahrouss --- Source/GUIDWizard.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/GUIDWizard.cxx b/Source/GUIDWizard.cxx index 100b88d4..74b12b00 100644 --- a/Source/GUIDWizard.cxx +++ b/Source/GUIDWizard.cxx @@ -10,7 +10,7 @@ #include #include -// begin of ascii 'seeable' characters. (A, C, C, 1, 2) +// begin of ascii 'readable' characters. (A, C, C, 1, 2) #define kAsciiBegin 47 // @brief Size of UUID. @@ -21,9 +21,7 @@ namespace hCore::XRN::Version1 auto make_sequence(const ArrayList& uuidSeq) -> Ref { GUIDSequence *seq = new GUIDSequence(); - - if (!seq) - return {}; + MUST_PASS(seq); Ref sequenceReference{seq, true}; -- cgit v1.2.3