From 37cbcfeb1c02033b2785c7aeb321f99ad9f65821 Mon Sep 17 00:00:00 2001 From: "dpapad@chromium.org" Date: Fri, 11 Mar 2011 20:47:22 +0000 Subject: Coverity PASS_BY_VALUE bug fixes BUG=CIDs 8731,9102,15473,6809 TEST=NONE Review URL: http://codereview.chromium.org/6670025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77854 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/base/x/x11_util.cc | 2 +- ui/base/x/x11_util_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/base/x') diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc index 6234069..f7c9c26 100644 --- a/ui/base/x/x11_util.cc +++ b/ui/base/x/x11_util.cc @@ -828,7 +828,7 @@ void SetX11ErrorHandlers(XErrorHandler error_handler, } void LogErrorEventDescription(Display* dpy, - XErrorEvent error_event) { + const XErrorEvent& error_event) { char error_str[256]; char request_str[256]; diff --git a/ui/base/x/x11_util_internal.h b/ui/base/x/x11_util_internal.h index 87b75ef8..31bbab2 100644 --- a/ui/base/x/x11_util_internal.h +++ b/ui/base/x/x11_util_internal.h @@ -44,7 +44,7 @@ namespace ui { // X11 Error handler because it queries the server to decode the // error message, which may trigger other errors. A suitable workaround // is to post a task in the error handler to call this function. - void LogErrorEventDescription(Display* dpy, XErrorEvent error_event); + void LogErrorEventDescription(Display* dpy, const XErrorEvent& error_event); } // namespace ui -- cgit v1.1