summaryrefslogtreecommitdiffhomepage
path: root/Source/GUIDWizard.cxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-06 09:20:01 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-06 09:20:01 +0100
commit66a99317ab749914124019e6d52d83abeec9804b (patch)
tree8de0372a866dfc41b6e72fc3334b806ebae3547d /Source/GUIDWizard.cxx
parent5339d016c07bf717ee388f4feb73544087324af0 (diff)
GUIDWizard: replace if with MUST_PASS.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Source/GUIDWizard.cxx')
-rw-r--r--Source/GUIDWizard.cxx6
1 files 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 <CFKit/GUIDWizard.hpp>
#include <NewKit/Ref.hpp>
-// 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<UShort>& uuidSeq) -> Ref<GUIDSequence*>
{
GUIDSequence *seq = new GUIDSequence();
-
- if (!seq)
- return {};
+ MUST_PASS(seq);
Ref<GUIDSequence*> sequenceReference{seq, true};