@@ -488,7 +488,7 @@ void TCKHostApplication::run_session_establishment_test(
488488 return ;
489489 }
490490
491- std::string host_id = params[0 ];
491+ const std::string& host_id = params[0 ];
492492
493493 auto result = establish_session (host_id);
494494 if (!result) {
@@ -509,7 +509,7 @@ void TCKHostApplication::run_session_termination_test(
509509 return ;
510510 }
511511
512- std::string host_id = params[0 ];
512+ const std::string& host_id = params[0 ];
513513
514514 try {
515515 // If host application is not running, start it first
@@ -563,7 +563,7 @@ void TCKHostApplication::run_send_command_test(const std::vector<std::string>& p
563563 return ;
564564 }
565565
566- std::string host_id = params[0 ];
566+ const std::string& host_id = params[0 ];
567567 // group_id, edge_node_id, device_id stored in current_test_params_ for prompt handler
568568
569569 try {
@@ -599,7 +599,7 @@ void TCKHostApplication::run_receive_data_test(const std::vector<std::string>& p
599599 return ;
600600 }
601601
602- std::string host_id = params[0 ];
602+ const std::string& host_id = params[0 ];
603603
604604 try {
605605 // If host application is not running, start it first
@@ -637,7 +637,7 @@ void TCKHostApplication::run_edge_session_termination_test(
637637 return ;
638638 }
639639
640- std::string host_id = params[0 ];
640+ const std::string& host_id = params[0 ];
641641
642642 try {
643643 // If host application is not running, start it first
@@ -673,7 +673,7 @@ void TCKHostApplication::run_message_ordering_test(
673673 return ;
674674 }
675675
676- std::string host_id = params[0 ];
676+ const std::string& host_id = params[0 ];
677677
678678 try {
679679 // If host application is not running, start it first
0 commit comments