From cfaaf5a9736439e089491b00cdfc8b8cc3904182 Mon Sep 17 00:00:00 2001 From: froejdh_e Date: Tue, 16 Dec 2025 16:35:53 +0100 Subject: [PATCH] removed depricated check, handle self assignment --- .clang-tidy | 1 - slsSupportLib/include/sls/sls_detector_defs.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index 562531bd3..c35d81014 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -29,7 +29,6 @@ Checks: '*, -llvmlibc-*' HeaderFilterRegex: \.h -AnalyzeTemporaryDtors: false FormatStyle: none CheckOptions: - { key: readability-identifier-naming.NamespaceCase, value: lower_case } diff --git a/slsSupportLib/include/sls/sls_detector_defs.h b/slsSupportLib/include/sls/sls_detector_defs.h index d028d4238..192cbf3ce 100644 --- a/slsSupportLib/include/sls/sls_detector_defs.h +++ b/slsSupportLib/include/sls/sls_detector_defs.h @@ -804,6 +804,8 @@ typedef struct { } sls_detector_module &operator=(const sls_detector_module &other) { + if(this == &other) + return *this; delete[] dacs; delete[] chanregs; serialnumber = other.serialnumber;