diff options
Diffstat (limited to 'cpp/rubygen/templates/Operations.rb')
-rwxr-xr-x | cpp/rubygen/templates/Operations.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/cpp/rubygen/templates/Operations.rb b/cpp/rubygen/templates/Operations.rb index 9f242f5910..fff4f796c3 100755 --- a/cpp/rubygen/templates/Operations.rb +++ b/cpp/rubygen/templates/Operations.rb @@ -17,13 +17,9 @@ class OperationsGen < CppGen def handler_method (m) return_type = m.result ? m.result.cpptype.ret : "void" - if (m.parent.name == "message" && (m.name == "transfer" || m.name == "append")) - gen "\nvirtual #{return_type} #{m.cppname}(const framing::AMQMethodBody& context) = 0;\n" - else - gen "\nvirtual #{return_type} #{m.cppname}(" - gen m.signature.join(",\n") - gen ") = 0;\n" - end + gen "\nvirtual #{return_type} #{m.cppname}(" + gen m.signature.join(",\n") + gen ") = 0;\n" end def handler_classname(c) c.name.caps+"Handler"; end @@ -40,7 +36,7 @@ class #{handlerclass} : public virtual Invocable { virtual ~#{handlerclass}() {} // Protocol methods EOS - c.methods_on(@chassis).each { |m| handler_method(m) } + c.methods_on(@chassis).each { |m| handler_method(m) if !m.content() } gen <<EOS }; // class #{handlerclass} |