mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-04 00:50:42 +02:00
changed operator() to const
This commit is contained in:
parent
4aa0d26f26
commit
64229ca32b
@ -610,7 +610,7 @@ slsDetector* multiSlsDetector::getSlsDetector(unsigned int pos) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
slsDetector *multiSlsDetector::operator()(int pos) {
|
||||
slsDetector *multiSlsDetector::operator()(int pos) const {
|
||||
if (pos >= 0 && pos < (int)detectors.size())
|
||||
return detectors[pos];
|
||||
return NULL;
|
||||
|
@ -491,7 +491,7 @@ public:
|
||||
* @param pos position in the multi list
|
||||
* @returns slsDetector object
|
||||
*/
|
||||
slsDetector *operator()(int pos);
|
||||
slsDetector *operator()(int pos) const;
|
||||
|
||||
/**
|
||||
* Free shared memory from the command line
|
||||
|
Loading…
x
Reference in New Issue
Block a user