Skip to content

Commit

Permalink
QgsDataDefined: be less restrictive in constructor
Browse files Browse the repository at this point in the history
If one has a method

    setValue( QgsDataDefined dd );

One can now do

    setValue( 40 )

While before it had to be

    setValue( QString( "40" ) )
  • Loading branch information
m-kuhn committed Jan 15, 2016
1 parent e1adc63 commit 532259f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsdatadefined.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 532259f

Please sign in to comment.