From 05b9fbf51f11117173ced2fe4887be8a9c977eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 17 Feb 2006 13:39:59 +0000 Subject: [PATCH] Accidently broke the build with the previous revision... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16455 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index 26cd30d2c9..48da259d5f 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -453,7 +453,7 @@ BWindow::RemoveChild(BView *child) int32 BWindow::CountChildren() const { - BAutolock locker(this); + BAutolock _(const_cast(this)); return fTopView->CountChildren(); } @@ -461,7 +461,7 @@ BWindow::CountChildren() const BView * BWindow::ChildAt(int32 index) const { - BAutolock locker(this); + BAutolock _(const_cast(this)); return fTopView->ChildAt(index); }