From 6bb1b32f42dd66161fbd46d2b5bd2cfa4f7a96ef Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Wed, 3 Nov 2010 21:54:52 +0000 Subject: [PATCH] Should have been part of previous commit. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39290 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/debugger/debug_info/Function.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/debugger/debug_info/Function.cpp b/src/apps/debugger/debug_info/Function.cpp index 29967e8b45..04dbb1e8dd 100644 --- a/src/apps/debugger/debug_info/Function.cpp +++ b/src/apps/debugger/debug_info/Function.cpp @@ -75,7 +75,7 @@ Function::RemoveListener(Listener* listener) void Function::AddInstance(FunctionInstance* instance) { - bool firstInstance = fInstances.First() == NULL; + bool firstInstance = fInstances.IsEmpty(); fInstances.Add(instance); if (firstInstance && SourceFile() != NULL) { instance->SourceFile()->AcquireReference(); @@ -88,7 +88,7 @@ void Function::RemoveInstance(FunctionInstance* instance) { fInstances.Remove(instance); - if (fInstances.First() == NULL && SourceFile() != NULL) { + if (fInstances.IsEmpty() && instance->SourceFile() != NULL) { instance->SourceFile()->RemoveListener(this); instance->SourceFile()->ReleaseReference(); }