File guitarix-0.28.2-gperf_tmpl-fix.patch of Package guitarix

diff -urN guitarix-0.28.2/src/gx_head/engine/jsonrpc.cpp guitarix-0.28.2-new/src/gx_head/engine/jsonrpc.cpp
--- guitarix-0.28.2/src/gx_head/engine/jsonrpc.cpp	2013-08-03 11:23:01.000000000 +0200
+++ guitarix-0.28.2-new/src/gx_head/engine/jsonrpc.cpp	2013-08-05 13:45:19.353960564 +0200
@@ -1158,7 +1158,7 @@
 	}
     }
     jp.next(gx_system::JsonParser::end_object);
-    const methodnames *p = in_word_set(method.c_str(), method.size());
+    const methodnames *p = Perfect_Hash::in_word_set(method.c_str(), method.size());
     if (!p) {
 	throw RpcError(-32601, Glib::ustring::compose("Method not found -- '%1'", method));
     }
diff -urN guitarix-0.28.2/src/gx_head/engine/jsonrpc_methods.gperf_tmpl guitarix-0.28.2-new/src/gx_head/engine/jsonrpc_methods.gperf_tmpl
--- guitarix-0.28.2/src/gx_head/engine/jsonrpc_methods.gperf_tmpl	2013-08-03 11:23:01.000000000 +0200
+++ guitarix-0.28.2-new/src/gx_head/engine/jsonrpc_methods.gperf_tmpl	2013-08-05 13:29:45.293494574 +0200
@@ -22,7 +22,7 @@
 ** this is basically a gperf file. Make sure you have the gperf
 ** package installed.
 */
-%language=ANSI-C
+%language=C++
 %struct-type
 %7bit
 %readonly-tables
diff -urN guitarix-0.28.2/src/LV2/gx_amp.lv2/gxamp_gui.cpp guitarix-0.28.2-new/src/LV2/gx_amp.lv2/gxamp_gui.cpp
--- guitarix-0.28.2/src/LV2/gx_amp.lv2/gxamp_gui.cpp	2013-08-03 11:23:01.000000000 +0200
+++ guitarix-0.28.2-new/src/LV2/gx_amp.lv2/gxamp_gui.cpp	2013-08-05 14:31:08.242177101 +0200
@@ -136,7 +136,7 @@
   // 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 -urN guitarix-0.28.2/src/LV2/gx_amp_stereo.lv2/gxamp_stereo_gui.cpp guitarix-0.28.2-new/src/LV2/gx_amp_stereo.lv2/gxamp_stereo_gui.cpp
--- guitarix-0.28.2/src/LV2/gx_amp_stereo.lv2/gxamp_stereo_gui.cpp	2013-08-03 11:23:01.000000000 +0200
+++ guitarix-0.28.2-new/src/LV2/gx_amp_stereo.lv2/gxamp_stereo_gui.cpp	2013-08-05 14:28:12.004728719 +0200
@@ -135,7 +135,7 @@
 {
   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()
openSUSE Build Service is sponsored by