Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: ppapi/cpp/dev/video_decoder_dev.cc

Issue 8965046: Coverity: Fixing pass by value bugs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing 100534 Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/dev/video_decoder_dev.h ('k') | ui/gfx/render_text.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/video_decoder_dev.cc
diff --git a/ppapi/cpp/dev/video_decoder_dev.cc b/ppapi/cpp/dev/video_decoder_dev.cc
index 7110695ac5ec0c2f4df4941ed7e01179ba4a80a8..dcc731229074f9fa5c1b1dcf10e36f390a7596bc 100644
--- a/ppapi/cpp/dev/video_decoder_dev.cc
+++ b/ppapi/cpp/dev/video_decoder_dev.cc
@@ -69,7 +69,7 @@ int32_t VideoDecoder_Dev::Flush(CompletionCallback callback) {
pp_resource(), callback.pp_completion_callback());
}
-int32_t VideoDecoder_Dev::Reset(CompletionCallback callback) {
+int32_t VideoDecoder_Dev::Reset(const CompletionCallback& callback) {
if (!has_interface<PPB_VideoDecoder_Dev>())
return callback.MayForce(PP_ERROR_NOINTERFACE);
return get_interface<PPB_VideoDecoder_Dev>()->Reset(
« no previous file with comments | « ppapi/cpp/dev/video_decoder_dev.h ('k') | ui/gfx/render_text.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698