QgsColorRamp* QgsStyle::colorRamp( const QString& name ) const { const QgsColorRamp *ramp = colorRampRef( name ); return ramp ? ramp->clone() : nullptr; }
QgsVectorColorRampV2* QgsStyleV2::colorRamp( QString name ) { const QgsVectorColorRampV2 *ramp = colorRampRef( name ); return ramp ? ramp->clone() : 0; }
QgsVectorColorRampV2* QgsStyleV2::colorRamp( const QString& name ) { const QgsVectorColorRampV2 *ramp = colorRampRef( name ); return ramp ? ramp->clone() : nullptr; }