X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fmessaging%2Fmessenger.hpp;h=457e24b6a3cdf52fed275ac3d0bf6dd1e154acd2;hb=5328c8da64ea724f8730b7a0bbd3214fde66fca1;hp=82d8a499b2819d92ee415b6e113865ce402407bd;hpb=ef3620529c936a8790d6970c57198b4caee09c0d;p=ric-plt%2Fxapp-frame-cpp.git diff --git a/src/messaging/messenger.hpp b/src/messaging/messenger.hpp index 82d8a49..457e24b 100644 --- a/src/messaging/messenger.hpp +++ b/src/messaging/messenger.hpp @@ -80,19 +80,19 @@ class Messenger { std::unique_ptr Alloc_msg( int payload_size ); // message allocation std::unique_ptr Alloc_alarm( ); // alarm allocation - std::unique_ptr Alloc_alarm( std::string meid ); - std::unique_ptr Alloc_alarm( int prob_id, std::string meid ); + std::unique_ptr Alloc_alarm( const std::string& meid ); + std::unique_ptr Alloc_alarm( int prob_id, const std::string& meid ); std::unique_ptr Alloc_metrics( ); // metrics allocation - std::unique_ptr Alloc_metrics( std::string source ); - std::unique_ptr Alloc_metrics( std::string reporter, std::string source ); + std::unique_ptr Alloc_metrics( const std::string& source ); + std::unique_ptr Alloc_metrics( const std::string& reporter, const std::string& source ); void Listen( ); // lisen driver std::unique_ptr Receive( int timeout ); // receive 1 message void Stop( ); // force to stop bool Wait_for_cts( int max_wait ); - int Wormhole_open( std::string endpoint ); + int Wormhole_open( const std::string& endpoint ); };