Resolved TODO: made TeamMemory and TeamTypeInformation BReferenceable.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42359 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent
2011-07-01 21:40:32 +00:00
parent 716e16d4c3
commit 8ac3d9fe39
4 changed files with 9 additions and 5 deletions
+1 -2
View File
@@ -33,8 +33,7 @@ class SourceLocation;
class SpecificTeamDebugInfo;
class TeamDebugInfo : public BReferenceable, public GlobalTypeLookup,
public TeamTypeInformation {
class TeamDebugInfo : public GlobalTypeLookup, public TeamTypeInformation {
public:
TeamDebugInfo(
DebuggerInterface* debuggerInterface,
+3 -1
View File
@@ -6,13 +6,15 @@
#define TEAM_MEMORY_H
#include <Referenceable.h>
#include "TargetAddressRange.h"
class BString;
class TeamMemory {
class TeamMemory : public BReferenceable {
public:
virtual ~TeamMemory();
@@ -15,7 +15,7 @@ class Type;
class TypeLookupConstraints;
class TeamTypeInformation {
class TeamTypeInformation : public BReferenceable {
public:
virtual ~TeamTypeInformation();
+4 -1
View File
@@ -25,8 +25,9 @@ ValueLoader::ValueLoader(Architecture* architecture, TeamMemory* teamMemory,
fTypeInformation(typeInformation),
fCpuState(cpuState)
{
// TODO: TeamMemory is not BReferenceable!
fArchitecture->AcquireReference();
fTeamMemory->AcquireReference();
fTypeInformation->AcquireReference();
if (fCpuState != NULL)
fCpuState->AcquireReference();
}
@@ -35,6 +36,8 @@ ValueLoader::ValueLoader(Architecture* architecture, TeamMemory* teamMemory,
ValueLoader::~ValueLoader()
{
fArchitecture->ReleaseReference();
fTeamMemory->ReleaseReference();
fTypeInformation->ReleaseReference();
if (fCpuState != NULL)
fCpuState->ReleaseReference();
}