Commit cd53294b authored by Michael Ott's avatar Michael Ott
Browse files

Make parameters to Sensor constructor const

parent 0daa9e2d
......@@ -18,8 +18,8 @@ namespace DCDB {
class Sensor {
public:
Sensor(DCDB::Connection* connection, std::string& publicName);
Sensor(Connection* connection, PublicSensor& sensor);
Sensor(DCDB::Connection* connection, const std::string& publicName);
Sensor(Connection* connection, const PublicSensor& sensor);
virtual ~Sensor();
void query(std::list<SensorDataStoreReading>& reading, TimeStamp& start, TimeStamp& end, QueryAggregate aggregate = AGGREGATE_NONE);
......
......@@ -11,7 +11,7 @@
namespace DCDB {
Sensor::Sensor(Connection* connection, std::string& publicName) {
Sensor::Sensor(Connection* connection, const std::string& publicName) {
/* Initialize the SensorConfig interface */
sensorConfig = new SensorConfig(connection);
......@@ -33,7 +33,7 @@ namespace DCDB {
}
}
Sensor::Sensor(Connection* connection, PublicSensor& sensor) {
Sensor::Sensor(Connection* connection, const PublicSensor& sensor) {
/* Initialize the SensorConfig interface */
sensorConfig = new SensorConfig(connection);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment