Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Samples/SubscriberHandler.cpp (1 of 17 files). Show all
Unified · Split
| @@ -32,8 +32,8 @@ using namespace std; · 31 unmodified lines | |||
| 32 | using namespace GSF; | 32 | using namespace GSF; |
| 33 | using namespace GSF::TimeSeries; | 33 | using namespace GSF::TimeSeries; |
| 34 | 34 | ||
| 35 | SubscriberHandler::SubscriberHandler(string name) : | 35 | SubscriberHandler::SubscriberHandler(const string& name) : |
| 36 | m_name(std::move(name)) | 36 | m_name(name) |
| 37 | { | 37 | { |
| 38 | } | 38 | } |
| 39 | 39 | ||
| @@ -178,7 +178,7 @@ void SubscriberHandler::ReceivedNewMeasurements(const vector<MeasurementPtr>& me · 138 unmodified lines | |||
| 178 | 178 | ||
| 179 | message << '\t' << GetTotalMeasurementsReceived() << endl; | 179 | message << '\t' << GetTotalMeasurementsReceived() << endl; |
| 180 | 180 | ||
| 181 | cout << message.str(); | 181 | StatusMessage(message.str()); |
| 182 | } | 182 | } |
| 183 | } | 183 | } |
| 184 | 184 | ||