summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-06 18:40:05 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-06 18:40:05 +0000
commitd06d97c961bdd759c3b77c106b1a42e9aa82756e (patch)
treef682813fcb5251e16787c6143cd5aeb95c10a96b
parenta4abd23a064b3ded4b65c41b855400207ad50ed9 (diff)
downloadchromium_src-d06d97c961bdd759c3b77c106b1a42e9aa82756e.zip
chromium_src-d06d97c961bdd759c3b77c106b1a42e9aa82756e.tar.gz
chromium_src-d06d97c961bdd759c3b77c106b1a42e9aa82756e.tar.bz2
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
-rw-r--r--ppapi/proxy/ppb_flash_clipboard_proxy.cc2
-rw-r--r--ppapi/proxy/ppb_flash_clipboard_proxy.h2
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<int> formats,
+ const std::vector<int>& 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<int> formats,
+ const std::vector<int>& formats,
SerializedVarVectorReceiveInput data_items);
};