summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFran├žois Revol <revol@free.fr>2014-06-20 15:19:10 +0200
committerFran├žois Revol <revol@free.fr>2014-06-20 15:19:10 +0200
commitfc290506a488d32f24c1e30257cd1883d57f77b3 (patch)
tree8fe67b7968bc9ed9443bcff56aeea5c986b442fa
parent186f7479ee86609978540fb57299acc8e20d6f0c (diff)
downloadnetsurf-fc290506a488d32f24c1e30257cd1883d57f77b3.tar.gz
netsurf-fc290506a488d32f24c1e30257cd1883d57f77b3.tar.bz2
beos: Fix local variable shadowing a parameter
-rw-r--r--beos/scaffolding.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/beos/scaffolding.cpp b/beos/scaffolding.cpp
index 35153b33d..0f87420a5 100644
--- a/beos/scaffolding.cpp
+++ b/beos/scaffolding.cpp
@@ -196,12 +196,11 @@ NSIconTextControl::NSIconTextControl(BRect frame, const char* name,
fIconBitmap(NULL)
{
BRect r(Bounds());
- BRect frame = r;
- frame.right = frame.left + ICON_WIDTH - 1;
- frame.bottom = frame.top + ICON_WIDTH - 1;
- frame.OffsetBy((int32)((r.IntegerHeight() - ICON_WIDTH + 3) / 2),
+ fIconFrame = r;
+ fIconFrame.right = fIconFrame.left + ICON_WIDTH - 1;
+ fIconFrame.bottom = fIconFrame.top + ICON_WIDTH - 1;
+ fIconFrame.OffsetBy((int32)((r.IntegerHeight() - ICON_WIDTH + 3) / 2),
(int32)((r.IntegerHeight() - ICON_WIDTH + 1) / 2));
- fIconFrame = frame;
FixupTextRect();
}