Mailinglist Archive: yast-commit (1056 mails)

< Previous Next >
[yast-commit] r44295 - /trunk/core/libyui/src/YProperty.h
  • From: sh-sh-sh@xxxxxxxxxxxxxxxx
  • Date: Fri, 08 Feb 2008 15:46:57 -0000
  • Message-id: <20080208154657.DA1D824A0B@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages