mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 05:42:53 +02:00
don't return reference to local variables
This commit is contained in:
parent
2ff35768aa
commit
8487f825a0
2 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@ Line3DOverlay::Line3DOverlay(const Line3DOverlay* line3DOverlay) :
|
|||
Line3DOverlay::~Line3DOverlay() {
|
||||
}
|
||||
|
||||
const glm::vec3& Line3DOverlay::getStart() const {
|
||||
glm::vec3 Line3DOverlay::getStart() const {
|
||||
bool success;
|
||||
glm::vec3 worldStart = localToWorld(_start, _parentID, _parentJointIndex, success);
|
||||
if (!success) {
|
||||
|
@ -41,7 +41,7 @@ const glm::vec3& Line3DOverlay::getStart() const {
|
|||
return worldStart;
|
||||
}
|
||||
|
||||
const glm::vec3& Line3DOverlay::getEnd() const {
|
||||
glm::vec3 Line3DOverlay::getEnd() const {
|
||||
bool success;
|
||||
glm::vec3 worldEnd = localToWorld(_end, _parentID, _parentJointIndex, success);
|
||||
if (!success) {
|
||||
|
|
|
@ -28,8 +28,8 @@ public:
|
|||
virtual AABox getBounds() const override;
|
||||
|
||||
// getters
|
||||
const glm::vec3& getStart() const;
|
||||
const glm::vec3& getEnd() const;
|
||||
glm::vec3 getStart() const;
|
||||
glm::vec3 getEnd() const;
|
||||
const float& getGlow() const { return _glow; }
|
||||
const float& getGlowWidth() const { return _glowWidth; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue