Update parameter to const

This commit is contained in:
Ryan Huffman 2014-05-16 09:53:48 -07:00
parent 8252b01e30
commit ea5dfbdf28
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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: