From 6e6f709276fb282de3aa4857019d3e03beb31e84 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 26 Nov 2023 12:18:43 -0800 Subject: [PATCH] cppcheck: small bool simplification Found with duplicateConditionalAssign Signed-off-by: Rosen Penev --- src/xmp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xmp.cpp b/src/xmp.cpp index 5130ca6c..da6e11c0 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -622,12 +622,12 @@ void XmpParser::registeredNamespaces(Exiv2::Dictionary&) { void XmpParser::terminate() { XmpProperties::unregisterNs(); - if (initialized_) { #ifdef EXV_HAVE_XMP_TOOLKIT + if (initialized_) SXMPMeta::Terminate(); +#else + initialized_ = false; #endif - initialized_ = false; - } } #ifdef EXV_HAVE_XMP_TOOLKIT