smaller changes to make arguments const

This commit is contained in:
Dhanya Maliakal
2016-11-25 12:22:00 +01:00
parent c70f453de4
commit 52dbb7f9fc
5 changed files with 7 additions and 6 deletions

View File

@@ -5599,6 +5599,7 @@ char* slsDetector::setReceiver(string receiverIP){
setTimer(FRAME_PERIOD,thisDetector->timerValue[FRAME_PERIOD]);
setTimer(FRAME_NUMBER,thisDetector->timerValue[FRAME_NUMBER]);
setTimer(ACQUISITION_TIME,thisDetector->timerValue[ACQUISITION_TIME]);
setDynamicRange(thisDetector->dynamicRange);
if(thisDetector->myDetectorType == EIGER)
activate(-1);

View File

@@ -1590,7 +1590,7 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
* @param destroy is true to destroy all the sockets
* @return OK or FAIL
*/
int createReceivingDataSockets(bool destroy = false){return 0;};
int createReceivingDataSockets(const bool destroy = false){return 0;};
/** Reads frames from receiver through a constant socket

View File

@@ -660,7 +660,7 @@ virtual int resetFramesCaught()=0;
* @param destroy is true to destroy all the sockets
* @return OK or FAIL
*/
virtual int createReceivingDataSockets(bool destroy = false)=0;
virtual int createReceivingDataSockets(const bool destroy = false)=0;
/** Reads frames from receiver through a constant socket