Author: sh-sh-sh Date: Fri Feb 8 16:46:57 2008 New Revision: 44295 URL: http://svn.opensuse.org/viewcvs/yast?rev=44295&view=rev Log: prevent accidential const char * -> bool conversion Modified: trunk/core/libyui/src/YProperty.h Modified: trunk/core/libyui/src/YProperty.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libyui/src/YProperty.h?rev=44295&r1=44294&r2=44295&view=diff ============================================================================== --- trunk/core/libyui/src/YProperty.h (original) +++ trunk/core/libyui/src/YProperty.h Fri Feb 8 16:46:57 2008 @@ -108,6 +108,12 @@ _type( YStringProperty ), _stringVal( str ) {} /** + * Constructor for const char * (string) properties. + **/ + YPropertyValue( const char * str ): + _type( YStringProperty ), _stringVal( str ) {} + + /** * Constructor for bool properties. **/ explicit YPropertyValue( bool b ): -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org