瀏覽代碼

Merge pull request #2551 from signalwire/v8_move

[mod_v8] SayPhrase: Coverity 1546153 COPY_INSTEAD_OF_MOVE
Andrey Volk 3 月之前
父節點
當前提交
c303c98539
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/mod/languages/mod_v8/src/fssession.cpp

+ 1 - 1
src/mod/languages/mod_v8/src/fssession.cpp

@@ -671,7 +671,7 @@ JS_SESSION_FUNCTION_IMPL(SayPhrase)
 		String::Utf8Value str(info[2]);
 		tmp = js_safe_str(*str);
 		if (!zstr(tmp.c_str())) {
-			phrase_lang = tmp;
+			phrase_lang = std::move(tmp);
 		}
 	}