Commit 38edbe43 authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

getting rid of "const char*" -> gem::any

parent 9e2fd134
......@@ -36,8 +36,7 @@ static gem::any atom2any(t_atom*ap)
result=atom_getfloat(ap);
break;
case A_SYMBOL:
#warning gem::any doesnt like "const char*"
result=const_cast<char*>(atom_getsymbol(ap)->s_name);
result=std::string(atom_getsymbol(ap)->s_name);
break;
default:
result=ap->a_w.w_gpointer;
......
......@@ -55,8 +55,7 @@ public:
result=atom_getfloat(ap);
break;
case A_SYMBOL:
#warning gem::any doesnt like "const char*"
result=const_cast<char*>(atom_getsymbol(ap)->s_name);
result=std::string(atom_getsymbol(ap)->s_name);
break;
default:
result=ap->a_w.w_gpointer;
......
......@@ -557,8 +557,7 @@ static gem::any atom2any(t_atom*ap)
result=atom_getfloat(ap);
break;
case A_SYMBOL:
#warning gem::any doesnt like "const char*"
result=const_cast<char*>(atom_getsymbol(ap)->s_name);
result=std::string(atom_getsymbol(ap)->s_name);
break;
default:
result=ap->a_w.w_gpointer;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment