diff --git a/src/gui.cxx b/src/gui.cxx index ea113ad..24d7135 100644 --- a/src/gui.cxx +++ b/src/gui.cxx @@ -329,7 +329,7 @@ static int cb_nsm_save ( char **out_msg, void *userdata ) -Gui::Gui(std::string argZero) : +Gui::Gui(const char* argZero) : samplerate( 0 ), window(1110,650), @@ -453,7 +453,7 @@ Gui::Gui(std::string argZero) : if ( nsm_init( nsm, nsm_url ) == 0 ) { - nsm_send_announce( nsm, "Luppp", "", argZero.c_str() ); + nsm_send_announce( nsm, "Luppp", "", argZero ); LUPPP_NOTE("Announcing to NSM"); } else diff --git a/src/gui.hxx b/src/gui.hxx index daea0b5..a378d6b 100644 --- a/src/gui.hxx +++ b/src/gui.hxx @@ -47,7 +47,7 @@ class AudioBuffer; class Gui { public: - Gui(std::string argZero); + Gui(const char* argZero); ~Gui(); int show();