change argument passing by value/reference

This commit is contained in:
Alexey Rybalchenko
2014-01-27 16:51:23 +01:00
parent ee70113120
commit b45f968c67
12 changed files with 22 additions and 26 deletions

View File

@@ -29,10 +29,10 @@ class FairMQBenchmarkSampler: public FairMQDevice
virtual ~FairMQBenchmarkSampler();
void Log(int intervalInMs);
void ResetEventCounter();
virtual void SetProperty(const int& key, const string& value, const int& slot = 0);
virtual string GetProperty(const int& key, const string& default_ = "", const int& slot = 0);
virtual void SetProperty(const int& key, const int& value, const int& slot = 0);
virtual int GetProperty(const int& key, const int& default_ = 0, const int& slot = 0);
virtual void SetProperty(const int key, const string& value, const int slot = 0);
virtual string GetProperty(const int key, const string& default_ = "", const int slot = 0);
virtual void SetProperty(const int key, const int value, const int slot = 0);
virtual int GetProperty(const int key, const int default_ = 0, const int slot = 0);
protected:
int fEventSize;
int fEventRate;