From ba9f80714ae4870c01b450b4f89cfa87d51a6827 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 2 May 2013 21:47:13 +0000 Subject: QPID-4798: Fix up c++ code generation to use stripped spec files. The stripped specs have no elements, this was tripping up the code generator. Fixed the generator to process elements if they are present but to carry on without them if they are not. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1478582 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/rubygen/framing.0-10/constants.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp/rubygen/framing.0-10/constants.rb') diff --git a/qpid/cpp/rubygen/framing.0-10/constants.rb b/qpid/cpp/rubygen/framing.0-10/constants.rb index 85bfb96ac0..589d94e23d 100755 --- a/qpid/cpp/rubygen/framing.0-10/constants.rb +++ b/qpid/cpp/rubygen/framing.0-10/constants.rb @@ -135,7 +135,7 @@ EOS name=c.name.caps+"Exception" value="#{package}::#{enum.parent.name.shout}_#{c.name.shout}" genl - doxygen_comment { genl c.doc } + doxygen_comment { genl c.doc } if c.doc struct(c.name.caps+"Exception", base) { genl "std::string getPrefix() const { return \"#{c.name}\"; }" genl "#{c.name.caps}Exception(const std::string& msg=std::string()) : #{base}(#{value}, \"\"+msg) {}" -- cgit v1.2.1