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

use std::string for gem::any

parent baa9affc
...@@ -87,8 +87,7 @@ static gem::any atom2any(t_atom*ap) ...@@ -87,8 +87,7 @@ static gem::any atom2any(t_atom*ap)
result=atom_getfloat(ap); result=atom_getfloat(ap);
break; break;
case A_SYMBOL: case A_SYMBOL:
#warning gem::any doesnt like "const char*" result=std::string(atom_getsymbol(ap)->s_name);
result=const_cast<char*>(atom_getsymbol(ap)->s_name);
break; break;
default: default:
result=ap->a_w.w_gpointer; result=ap->a_w.w_gpointer;
......
Supports Markdown
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