fix warning about returning ref to temp variable

This commit is contained in:
Andrew Meadows 2015-06-11 08:38:03 -07:00
parent d448a3be7f
commit 7d0000c537

View file

@ -245,7 +245,7 @@ public:
void update(const UpdateFunctorPointer& updateFunctor) { _payload->update(updateFunctor); } void update(const UpdateFunctorPointer& updateFunctor) { _payload->update(updateFunctor); }
// Shape Type Interface // Shape Type Interface
const model::MaterialKey& getMaterialKey() const { return _payload->getMaterialKey(); } const model::MaterialKey getMaterialKey() const { return _payload->getMaterialKey(); }
protected: protected:
PayloadPointer _payload; PayloadPointer _payload;