summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/old_frames
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-08 18:04:53 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-08 18:04:53 +0000
commit3ba2ba00e4b5fa0ce82a1a1e88e7ddf93e228df5 (patch)
treec9a397d2809fb06525c6c89c1fcab983bc63ed41 /chrome/browser/views/old_frames
parentc5949a3000ca3d6a7bd3a400ebd89206835a740a (diff)
downloadchromium_src-3ba2ba00e4b5fa0ce82a1a1e88e7ddf93e228df5.zip
chromium_src-3ba2ba00e4b5fa0ce82a1a1e88e7ddf93e228df5.tar.gz
chromium_src-3ba2ba00e4b5fa0ce82a1a1e88e7ddf93e228df5.tar.bz2
klockwork bug: variable delared in nested scope
BUG=3084 Review URL: http://codereview.chromium.org/6227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3018 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/old_frames')
-rw-r--r--chrome/browser/views/old_frames/xp_frame.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/views/old_frames/xp_frame.cc b/chrome/browser/views/old_frames/xp_frame.cc
index 8e3978f..cb0220c 100644
--- a/chrome/browser/views/old_frames/xp_frame.cc
+++ b/chrome/browser/views/old_frames/xp_frame.cc
@@ -167,12 +167,9 @@ class RegionsUnderInfo {
tmp,
RGN_AND) != NULLREGION) {
// Remove that intersection to exclude any window below
- int status = ::CombineRgn(rui->hwnd_rgn_,
- rui->hwnd_rgn_,
- tmp,
- RGN_DIFF);
+ status = ::CombineRgn(rui->hwnd_rgn_, rui->hwnd_rgn_, tmp, RGN_DIFF);
- // We have an interesction, add it with the region in hwnd
+ // We have an intersection, add it with the region in hwnd
// coordinate system
::OffsetRgn(tmp, -r.left, -r.top);
rui->windows_.push_back(hwnd);