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;