48 lines
1.8 KiB
Diff
48 lines
1.8 KiB
Diff
diff -Nurp guitarix-0.28.2.orig/src/LV2/gx_amp.lv2/gxamp_gui.cpp guitarix-0.28.2.mod/src/LV2/gx_amp.lv2/gxamp_gui.cpp
|
|
--- guitarix-0.28.2.orig/src/LV2/gx_amp.lv2/gxamp_gui.cpp 2013-08-03 11:23:01.000000000 +0200
|
|
+++ guitarix-0.28.2.mod/src/LV2/gx_amp.lv2/gxamp_gui.cpp 2013-10-04 03:38:26.927527576 +0200
|
|
@@ -124,19 +124,12 @@ void GXPluginGUI::set_skin()
|
|
gtk_rc_parse_string (toparse.c_str());
|
|
}
|
|
|
|
-inline std::string to_string(long long _Val)
|
|
-{ // convert int to string
|
|
- char _Buf[128];
|
|
- sprintf(_Buf, "%lld", _Val);
|
|
- return (std::string(_Buf));
|
|
-}
|
|
-
|
|
void GXPluginGUI::set_plug_name()
|
|
{
|
|
// Here the plugin should have different name for different amp.....
|
|
addKnob = "";
|
|
plugskin = "amp21.png";
|
|
- plug_name = "GUITARIXLV2" + to_string(reinterpret_cast<long long>(this));
|
|
+ plug_name = "GUITARIXLV2" + std::to_string(reinterpret_cast<long long>(this));
|
|
//fprintf(stderr,"%s",plug_name.c_str());
|
|
}
|
|
|
|
diff -Nurp guitarix-0.28.2.orig/src/LV2/gx_amp_stereo.lv2/gxamp_stereo_gui.cpp guitarix-0.28.2.mod/src/LV2/gx_amp_stereo.lv2/gxamp_stereo_gui.cpp
|
|
--- guitarix-0.28.2.orig/src/LV2/gx_amp_stereo.lv2/gxamp_stereo_gui.cpp 2013-08-03 11:23:01.000000000 +0200
|
|
+++ guitarix-0.28.2.mod/src/LV2/gx_amp_stereo.lv2/gxamp_stereo_gui.cpp 2013-10-04 03:39:12.223528009 +0200
|
|
@@ -124,18 +124,11 @@ void GXPluginGUI::set_skin()
|
|
gtk_rc_parse_string (toparse.c_str());
|
|
}
|
|
|
|
-inline std::string to_string(long long _Val)
|
|
-{ // convert int to string
|
|
- char _Buf[128];
|
|
- sprintf(_Buf, "%lld", _Val);
|
|
- return (std::string(_Buf));
|
|
-}
|
|
-
|
|
void GXPluginGUI::set_plug_name()
|
|
{
|
|
addKnob = "";
|
|
plugskin = "amp21.png";
|
|
- plug_name = "GUITARIXLV2" + to_string(reinterpret_cast<long long>(this));
|
|
+ plug_name = "GUITARIXLV2" + std::to_string(reinterpret_cast<long long>(this));
|
|
}
|
|
|
|
GtkWidget* GXPluginGUI::make_gui()
|