Remove duplicated int to string code

master
rubenwardy 2014-05-27 17:31:59 +01:00
parent ef61b9520b
commit d0626b606b
1 changed files with 1 additions and 4 deletions

View File

@ -1,6 +1,5 @@
#include "util/string.hpp"
#include "Node.hpp"
#include <sstream>
Node::Node(IrrlichtDevice* device, EditorState* state, unsigned int id) :
device(device),
@ -36,9 +35,7 @@ NodeBox* Node::GetNodeBox(int id) {
NodeBox* Node::addNodeBox(){
_box_count++;
// Name it
std::ostringstream s;
s << "NodeBox" << _box_count;
std::string name(s.str());
std::string name = "NodeBox" + num_to_str(_box_count);
// Set up structure
NodeBox* tmp = new NodeBox(name,