activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r775735 - /activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/CommandSourceGenerator.java
Date Sun, 17 May 2009 18:41:47 GMT
Author: tabish
Date: Sun May 17 18:41:47 2009
New Revision: 775735

URL: http://svn.apache.org/viewvc?rev=775735&view=rev
Log:
Add generation of a call to the base class constructor for both the default and copy constructors
of the Commands.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/CommandSourceGenerator.java

Modified: activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/CommandSourceGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/CommandSourceGenerator.java?rev=775735&r1=775734&r2=775735&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/CommandSourceGenerator.java
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/CommandSourceGenerator.java
Sun May 17 18:41:47 2009
@@ -53,14 +53,14 @@
         out.println(" */");
         out.println("");
         out.println("////////////////////////////////////////////////////////////////////////////////");
-        out.println(""+getClassName()+"::"+getClassName()+"() {");
+        out.println(""+getClassName()+"::"+getClassName()+"() : " + getBaseClassName() +
"() {");
         out.println("");
         generateDefaultConstructorBody(out);
         out.println("}");
         out.println("");
         if( isAssignable() ) {
             out.println("////////////////////////////////////////////////////////////////////////////////");
-            out.println(""+getClassName()+"::"+getClassName()+"( const "+getClassName()+"&
other ) {");
+            out.println(""+getClassName()+"::"+getClassName()+"( const "+getClassName()+"&
other ) : " + getBaseClassName() + "() {");
             out.println("    this->copyDataStructure( &other );");
             out.println("}");
             out.println("");



Mime
View raw message