[pygccxml-commit] SF.net SVN: pygccxml: [634] pyplusplus_dev
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2006-10-09 20:37:18
|
Revision: 634 http://svn.sourceforge.net/pygccxml/?rev=634&view=rev Author: roman_yakovenko Date: 2006-10-09 13:37:05 -0700 (Mon, 09 Oct 2006) Log Message: ----------- fixing bug in find properties algorithm Modified Paths: -------------- pyplusplus_dev/pyplusplus/decl_wrappers/properties.py pyplusplus_dev/unittests/data/properties_to_be_exported.hpp Modified: pyplusplus_dev/pyplusplus/decl_wrappers/properties.py =================================================================== --- pyplusplus_dev/pyplusplus/decl_wrappers/properties.py 2006-10-09 12:32:44 UTC (rev 633) +++ pyplusplus_dev/pyplusplus/decl_wrappers/properties.py 2006-10-09 20:37:05 UTC (rev 634) @@ -65,10 +65,10 @@ , ( '', 'set' ) ) def check_prefix( self, name, prefix ): - if len( prefix ) >= len( name ): - return False if not name.startswith( prefix ): return False + if len( name ) < len( prefix ): + return False return True def check_name_compatibility( self, gname, sname, gprefix, sprefix ): Modified: pyplusplus_dev/unittests/data/properties_to_be_exported.hpp =================================================================== --- pyplusplus_dev/unittests/data/properties_to_be_exported.hpp 2006-10-09 12:32:44 UTC (rev 633) +++ pyplusplus_dev/unittests/data/properties_to_be_exported.hpp 2006-10-09 20:37:05 UTC (rev 634) @@ -50,8 +50,8 @@ int GetType() const { return 0; } - float get() const; - void set(float); + float get() const{ return 0.1; } + void set(float){} }; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |