Permalink
Browse files

Scene::setName doesnt use ref; moved header

  • Loading branch information...
1 parent e170455 commit 926c51b64e29c4432ca6add16413cc26308ce2c6 @danomatika committed Feb 4, 2012
Showing with 5 additions and 4 deletions.
  1. +4 −3 src/ofxApp.h
  2. +1 −1 src/ofxScene.h
View
@@ -1,6 +1,3 @@
-#pragma once
-
-#include <ofMain.h>
/*
* Copyright (c) 2011 Dan Wilcox <danomatika@gmail.com>
*
@@ -11,6 +8,10 @@
* See https://github.com/danomatika/ofxAppUtils for documentation
*
*/
+#pragma once
+
+#include <ofMain.h>
+
#ifndef OFX_APP_UTILS_NO_CONTROL_PANEL
#include "ofxXmlSettings.h"
#include "ofxControlPanel.h"
View
@@ -86,7 +86,7 @@ class ofxScene : public ofBaseApp {
inline void runToggle() {_bRunning = !_bRunning;}
/// get/set the scenes name
- inline void setName(std::string& name) {_name = name;}
+ inline void setName(std::string name) {_name = name;}
inline std::string getName() {return _name;}
/// is the scene currently running?

0 comments on commit 926c51b

Please sign in to comment.