You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2008/07/04 13:00:52 UTC
svn commit: r674003 - /incubator/qpid/trunk/qpid/cpp/rubygen/cppgen.rb
Author: gsim
Date: Fri Jul 4 04:00:52 2008
New Revision: 674003
URL: http://svn.apache.org/viewvc?rev=674003&view=rev
Log:
Only override default value for accept-mode field in message.transfer (not message.subscribe)
Modified:
incubator/qpid/trunk/qpid/cpp/rubygen/cppgen.rb
Modified: incubator/qpid/trunk/qpid/cpp/rubygen/cppgen.rb
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/rubygen/cppgen.rb?rev=674003&r1=674002&r2=674003&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/rubygen/cppgen.rb (original)
+++ incubator/qpid/trunk/qpid/cpp/rubygen/cppgen.rb Fri Jul 4 04:00:52 2008
@@ -207,10 +207,10 @@
end
def param_default() "=#{fqtypename}()" end
- # Default value is normally the C++ default but over-ridden for specific types.
+ # Default value is normally the C++ default but over-ridden in specific cases
def default_value()
defval = cpptype.default_value;
- if type_ == "accept-mode" then defval = "1"; end
+ if name == "accept-mode" and parent.name == "transfer" then defval = "1"; end
return defval
end
end