Compare commits

..

2 Commits

Author SHA1 Message Date
7d1d5e9809 Merge pull request #1347 from slsdetectorgroup/fix/self-assign
All checks were successful
Build on local RHEL9 / build (push) Successful in 1m22s
Build on local RHEL8 / build (push) Successful in 3m26s
Build on RHEL9 / build (push) Successful in 3m45s
Build on RHEL8 / build (push) Successful in 4m52s
clang-tidy [unhandled-self-assignment]
2025-12-17 13:01:17 +01:00
froejdh_e
cfaaf5a973 removed depricated check, handle self assignment 2025-12-16 16:35:53 +01:00
4 changed files with 2 additions and 7 deletions

View File

@@ -29,7 +29,6 @@ Checks: '*,
-llvmlibc-*' -llvmlibc-*'
HeaderFilterRegex: \.h HeaderFilterRegex: \.h
AnalyzeTemporaryDtors: false
FormatStyle: none FormatStyle: none
CheckOptions: CheckOptions:
- { key: readability-identifier-naming.NamespaceCase, value: lower_case } - { key: readability-identifier-naming.NamespaceCase, value: lower_case }

View File

@@ -37,8 +37,6 @@ Experimental support for building the detector client (including python bindings
``rx_dbitlist`` keeps the order of the passed bit list ``rx_dbitlist`` keeps the order of the passed bit list
Marked unused functions readDataFile/writeDataFile deprecated in file_utils.h
2 On-board Detector Server Compatibility 2 On-board Detector Server Compatibility
========================================== ==========================================

View File

@@ -16,7 +16,6 @@ namespace sls {
* @param nch number of channels * @param nch number of channels
* @param offset start channel value * @param offset start channel value
*/ */
[[deprecated]]
int readDataFile(std::ifstream &infile, short int *data, int nch, int readDataFile(std::ifstream &infile, short int *data, int nch,
int offset = 0); int offset = 0);
@@ -24,7 +23,6 @@ int readDataFile(std::ifstream &infile, short int *data, int nch,
* @param data array of data value * @param data array of data value
* @param nch number of channels * @param nch number of channels
*/ */
[[deprecated]]
int readDataFile(std::string fname, short int *data, int nch); int readDataFile(std::string fname, short int *data, int nch);
std::vector<char> readBinaryFile(const std::string &fname, std::vector<char> readBinaryFile(const std::string &fname,
@@ -35,7 +33,6 @@ std::vector<char> readBinaryFile(const std::string &fname,
* @param data array of data values * @param data array of data values
* @param offset start channel number * @param offset start channel number
*/ */
[[deprecated]]
int writeDataFile(std::ofstream &outfile, int nch, short int *data, int writeDataFile(std::ofstream &outfile, int nch, short int *data,
int offset = 0); int offset = 0);
@@ -43,7 +40,6 @@ int writeDataFile(std::ofstream &outfile, int nch, short int *data,
* @param nch number of channels * @param nch number of channels
* @param data array of data values * @param data array of data values
*/ */
[[deprecated]]
int writeDataFile(std::string fname, int nch, short int *data); int writeDataFile(std::string fname, int nch, short int *data);
// mkdir -p path implemented by recursive calls // mkdir -p path implemented by recursive calls

View File

@@ -804,6 +804,8 @@ typedef struct {
} }
sls_detector_module &operator=(const sls_detector_module &other) { sls_detector_module &operator=(const sls_detector_module &other) {
if(this == &other)
return *this;
delete[] dacs; delete[] dacs;
delete[] chanregs; delete[] chanregs;
serialnumber = other.serialnumber; serialnumber = other.serialnumber;