Commit 28ac1255 authored by rnk@chromium.org's avatar rnk@chromium.org

Don't take the address of a temporary

MSVC extends the lifetime of such objects, but clang does not, and it
errors on this construct.

R=ananta@chromium.org
BUG=82385

Review URL: https://codereview.chromium.org/14141005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194997 0039d316-1c4b-4281-b951-d872f2087c98
parent ef716749
...@@ -1024,7 +1024,8 @@ LRESULT CALLBACK WebPluginDelegateImpl::NativeWndProc( ...@@ -1024,7 +1024,8 @@ LRESULT CALLBACK WebPluginDelegateImpl::NativeWndProc(
if (old_message != custom_msg) if (old_message != custom_msg)
flags |= RDW_UPDATENOW; flags |= RDW_UPDATENOW;
RedrawWindow(hwnd, &invalid_rect.ToRECT(), NULL, flags); RECT rect = invalid_rect.ToRECT();
RedrawWindow(hwnd, &rect, NULL, flags);
result = FALSE; result = FALSE;
} else { } else {
delegate->is_calling_wndproc = true; delegate->is_calling_wndproc = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment