From d06d97c961bdd759c3b77c106b1a42e9aa82756e Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Tue, 6 Mar 2012 18:40:05 +0000 Subject: Coverity: Fix a pass-by-value. CID_COUNT=1 CID=103415 BUG=none TEST=none R=groby Review URL: https://chromiumcodereview.appspot.com/9553017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125186 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/proxy/ppb_flash_clipboard_proxy.cc | 2 +- ppapi/proxy/ppb_flash_clipboard_proxy.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ppapi/proxy/ppb_flash_clipboard_proxy.cc b/ppapi/proxy/ppb_flash_clipboard_proxy.cc index b2166aa..268a8e4 100644 --- a/ppapi/proxy/ppb_flash_clipboard_proxy.cc +++ b/ppapi/proxy/ppb_flash_clipboard_proxy.cc @@ -153,7 +153,7 @@ void PPB_Flash_Clipboard_Proxy::OnMsgReadData( void PPB_Flash_Clipboard_Proxy::OnMsgWriteData( PP_Instance instance, int clipboard_type, - std::vector formats, + const std::vector& formats, SerializedVarVectorReceiveInput data_items) { EnterFlashClipboardNoLock enter(instance, true); if (enter.succeeded()) { diff --git a/ppapi/proxy/ppb_flash_clipboard_proxy.h b/ppapi/proxy/ppb_flash_clipboard_proxy.h index e7a40bc..90cb07a 100644 --- a/ppapi/proxy/ppb_flash_clipboard_proxy.h +++ b/ppapi/proxy/ppb_flash_clipboard_proxy.h @@ -59,7 +59,7 @@ class PPB_Flash_Clipboard_Proxy SerializedVarReturnValue result); void OnMsgWriteData(PP_Instance instance, int clipboard_type, - std::vector formats, + const std::vector& formats, SerializedVarVectorReceiveInput data_items); }; -- cgit v1.1