mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 09:33:36 +02:00
add comment about returning smart pointer by ref
This commit is contained in:
parent
59abc1d5b5
commit
0a2b4a8d1d
1 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,8 @@ public:
|
|||
virtual QUuid getSimulatorID() const override;
|
||||
virtual void bump(uint8_t priority) override;
|
||||
|
||||
// getEntity() returns a smart-pointer by reference because it is only ever used
|
||||
// to insert into lists of smart pointers, and the lists will make their own copies
|
||||
const EntityItemPointer& getEntity() const { return _entity; }
|
||||
|
||||
void resetMeasuredBodyAcceleration();
|
||||
|
|
Loading…
Reference in a new issue