Add copy constructor to ValueLoader.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42361 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -33,6 +33,21 @@ ValueLoader::ValueLoader(Architecture* architecture, TeamMemory* teamMemory,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ValueLoader::ValueLoader(const ValueLoader& other)
|
||||||
|
:
|
||||||
|
fArchitecture(other.fArchitecture),
|
||||||
|
fTeamMemory(other.fTeamMemory),
|
||||||
|
fTypeInformation(other.fTypeInformation),
|
||||||
|
fCpuState(other.fCpuState)
|
||||||
|
{
|
||||||
|
fArchitecture->AcquireReference();
|
||||||
|
fTeamMemory->AcquireReference();
|
||||||
|
fTypeInformation->AcquireReference();
|
||||||
|
if (fCpuState != NULL)
|
||||||
|
fCpuState->AcquireReference();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ValueLoader::~ValueLoader()
|
ValueLoader::~ValueLoader()
|
||||||
{
|
{
|
||||||
fArchitecture->ReleaseReference();
|
fArchitecture->ReleaseReference();
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ public:
|
|||||||
TeamTypeInformation* typeInformation,
|
TeamTypeInformation* typeInformation,
|
||||||
CpuState* cpuState);
|
CpuState* cpuState);
|
||||||
// cpuState can be NULL
|
// cpuState can be NULL
|
||||||
|
ValueLoader(const ValueLoader& other);
|
||||||
~ValueLoader();
|
~ValueLoader();
|
||||||
|
|
||||||
Architecture* GetArchitecture() const
|
Architecture* GetArchitecture() const
|
||||||
|
|||||||
Reference in New Issue
Block a user