summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Dickow <jjdickow@gmail.com>2016-04-25 13:32:19 -0400
committerJustin Dickow <jjdickow@gmail.com>2016-04-25 13:32:19 -0400
commit7c2cace7bf9d72027d21b2128b9ad1beab873d3f (patch)
tree728eac0340ae6dbbb01accb80df37cef97b1e510
parent84715ef03588aaee2f1c89938915a63c16e5d91e (diff)
downloadsdl_core-hotfix/80095.tar.gz
Don't use temp string for c_str ()hotfix/80095
-rw-r--r--src/components/application_manager/src/commands/mobile/set_global_properties_request.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/application_manager/src/commands/mobile/set_global_properties_request.cc b/src/components/application_manager/src/commands/mobile/set_global_properties_request.cc
index 1c0948d07e..c51a7108a9 100644
--- a/src/components/application_manager/src/commands/mobile/set_global_properties_request.cc
+++ b/src/components/application_manager/src/commands/mobile/set_global_properties_request.cc
@@ -344,12 +344,12 @@ void SetGlobalPropertiesRequest::on_event(const event_engine::Event& event) {
mobile_apis::Result::eType result_code;
const char* return_info = NULL;
+ const std::string return_string = "Unsupported phoneme type sent in a prompt";
if (result) {
if (hmi_apis::Common_Result::UNSUPPORTED_RESOURCE == tts_result_) {
result_code = mobile_apis::Result::WARNINGS;
- return_info =
- std::string("Unsupported phoneme type sent in a prompt").c_str();
+ return_info = return_string.c_str();
} else {
result_code = static_cast<mobile_apis::Result::eType>(
std::max(ui_result_, tts_result_));