|
|
@ -74,6 +74,10 @@ bool IsTrackedKey(const plKeyImp* key) |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hsKeyedObject* plKeyImp::SafeGetObject(const plKeyImp* key) { |
|
|
|
|
|
|
|
return key ? key->fObjectPtr : nullptr; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
plKeyImp::plKeyImp() : |
|
|
|
plKeyImp::plKeyImp() : |
|
|
|
fObjectPtr(nil), |
|
|
|
fObjectPtr(nil), |
|
|
|
fStartPos(-1), |
|
|
|
fStartPos(-1), |
|
|
@ -156,7 +160,7 @@ hsKeyedObject* plKeyImp::GetObjectPtr() |
|
|
|
|
|
|
|
|
|
|
|
hsKeyedObject* plKeyImp::ObjectIsLoaded() const |
|
|
|
hsKeyedObject* plKeyImp::ObjectIsLoaded() const |
|
|
|
{ |
|
|
|
{ |
|
|
|
return this ? fObjectPtr : nil; |
|
|
|
return plKeyImp::SafeGetObject(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Copy the contents of p for cloning process
|
|
|
|
// Copy the contents of p for cloning process
|
|
|
|