diff options
Diffstat (limited to 'src/components/telemetry_monitor/src/protocol_handler_observer.cc')
-rw-r--r-- | src/components/telemetry_monitor/src/protocol_handler_observer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/telemetry_monitor/src/protocol_handler_observer.cc b/src/components/telemetry_monitor/src/protocol_handler_observer.cc index 2244cb2259..95f1a87b67 100644 --- a/src/components/telemetry_monitor/src/protocol_handler_observer.cc +++ b/src/components/telemetry_monitor/src/protocol_handler_observer.cc @@ -58,7 +58,7 @@ void ProtocolHandlerObserver::StartMessageProcess( } void ProtocolHandlerObserver::EndMessageProcess( - utils::SharedPtr<MessageMetric> m) { + std::shared_ptr<MessageMetric> m) { uint32_t message_id = m->message_id; std::map<uint32_t, TimevalStruct>::const_iterator it = time_starts.find(message_id); @@ -68,7 +68,7 @@ void ProtocolHandlerObserver::EndMessageProcess( } m->begin = time_starts[message_id]; m->end = date_time::DateTime::getCurrentTime(); - ProtocolHandlerMecticWrapper* metric = new ProtocolHandlerMecticWrapper(); + auto metric = std::make_shared<ProtocolHandlerMecticWrapper>(); metric->message_metric = m; metric->grabResources(); telemetry_monitor_->SendMetric(metric); |