QgsDataDefined: be less restrictive in constructor

If one has a method

    setValue( QgsDataDefined dd );

One can now do

    setValue( 40 )

While before it had to be

    setValue( QString( "40" ) )
This commit is contained in:
Matthias Kuhn 2016-01-14 14:38:41 +01:00
parent e1adc6379f
commit 532259f84a

View File

@ -63,7 +63,7 @@ class CORE_EXPORT QgsDataDefined
* @param string field reference or an expression, can be empty
* @note added in QGIS 2.9
*/
explicit QgsDataDefined( const QString& string );
QgsDataDefined( const QString& string );
/**
* Copy constructor. Note that copies of data defined objects with expressions