Revision: 956
http://svn.sourceforge.net/pygccxml/?rev=956&view=rev
Author: roman_yakovenko
Date: 2007-03-12 05:36:39 -0700 (Mon, 12 Mar 2007)
Log Message:
-----------
fixing constructor comment
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/code_creators/calldef.py
Modified: pyplusplus_dev/pyplusplus/code_creators/calldef.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_creators/calldef.py 2007-03-11 11:10:10 UTC (rev 955)
+++ pyplusplus_dev/pyplusplus/code_creators/calldef.py 2007-03-12 12:36:39 UTC (rev 956)
@@ -885,8 +885,13 @@
def _create_impl(self):
answer = [ self._create_declaration() ]
answer.append( ': ' + self._create_constructor_call() )
- answer.append( ' , ' + self.parent.boost_wrapper_identifier + '()' )
- answer.append( '{ // Normal constructor' )
+ answer.append( ' , ' + self.parent.boost_wrapper_identifier + '(){' )
+ if( self.declaration.is_copy_constructor ):
+ answer.append( self.indent( '// copy constructor' ) )
+ elif not self.declaration.arguments:
+ answer.append( self.indent( '// null constructor' ) )
+ else:
+ answer.append( self.indent( '// constructor' ) )
answer.append( self.declaration.body )
answer.append( '}' )
return os.linesep.join( answer )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|