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