From ea5dfbdf28f540373b3a67f6a02d0204a5c62dd5 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Fri, 16 May 2014 09:53:48 -0700 Subject: [PATCH] Update parameter to const --- interface/src/ui/NodeBounds.cpp | 4 ++-- interface/src/ui/NodeBounds.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/src/ui/NodeBounds.cpp b/interface/src/ui/NodeBounds.cpp index 96639c44e5..4621be6c42 100644 --- a/interface/src/ui/NodeBounds.cpp +++ b/interface/src/ui/NodeBounds.cpp @@ -152,7 +152,7 @@ void NodeBounds::draw() { } } -void NodeBounds::drawNodeBorder(glm::vec3 center, float scale, float red, float green, float blue) { +void NodeBounds::drawNodeBorder(const glm::vec3& center, float scale, float red, float green, float blue) { glPushMatrix(); glTranslatef(center.x, center.y, center.z); @@ -221,7 +221,7 @@ void NodeBounds::drawOverlay() { const int BACKGROUND_OFFSET_Y = -20; const int BACKGROUND_BEVEL = 3; - char* text = _overlayText.toLocal8Bit().data(); + char* text = _overlayText.toLatin1().data(); int mouseX = application->getMouseX(), mouseY = application->getMouseY(), textWidth = widthText(TEXT_SCALE, 0, text); diff --git a/interface/src/ui/NodeBounds.h b/interface/src/ui/NodeBounds.h index 9ef2ab486a..ae2be5f2c1 100644 --- a/interface/src/ui/NodeBounds.h +++ b/interface/src/ui/NodeBounds.h @@ -34,7 +34,7 @@ public slots: void setShowParticleNodes(bool value) { _showParticleNodes = value; } protected: - void drawNodeBorder(glm::vec3 center, float scale, float red, float green, float blue); + void drawNodeBorder(const glm::vec3& center, float scale, float red, float green, float blue); void getColorForNodeType(NodeType_t nodeType, float& red, float& green, float& blue); private: