From 75c329a08e9c45532cdbe20df4276d2e9949e363 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 16 Mar 2024 12:19:10 +0200 Subject: [PATCH] Refactoring. Code style. --- src/libs/vdxf/libdxfrw/drw_base.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libs/vdxf/libdxfrw/drw_base.h b/src/libs/vdxf/libdxfrw/drw_base.h index 344ab902d..6d32df9a1 100644 --- a/src/libs/vdxf/libdxfrw/drw_base.h +++ b/src/libs/vdxf/libdxfrw/drw_base.h @@ -249,14 +249,13 @@ static inline auto DRW_FuzzyComparePossibleNulls(double p1, double p2) -> bool { return qFuzzyIsNull(p2); } + if (qFuzzyIsNull(p2)) { return false; } - else - { - return qFuzzyCompare(p1, p2); - } + + return qFuzzyCompare(p1, p2); } //! Class to handle 3D coordinate point