Skip to content
Permalink
Browse files

fix in listwidgetfactory and set method of ogrprovider to const not c…

…hanging class values
  • Loading branch information
signedav committed Jan 2, 2019
1 parent a62867d commit 386c16fd1a965f7099fbc0c9524d245012fc3899
@@ -44,5 +44,5 @@ QgsEditorConfigWidget *QgsListWidgetFactory::configWidget( QgsVectorLayer *vl, i
unsigned int QgsListWidgetFactory::fieldScore( const QgsVectorLayer *vl, int fieldIdx ) const
{
const QgsField field = vl->fields().field( fieldIdx );
return ( field.type() == QVariant::List || field.type() == QVariant::StringList || QVariant::Map ) && field.subType() != QVariant::Invalid ? 20 : 0;
return ( field.type() == QVariant::List || field.type() == QVariant::StringList || field.type() == QVariant::Map ) && field.subType() != QVariant::Invalid ? 20 : 0;
}
@@ -1408,7 +1408,7 @@ OGRGeometryH QgsOgrProvider::ConvertGeometryIfNecessary( OGRGeometryH hGeom )
return OGR_G_ForceTo( hGeom, layerGeomType, nullptr );
}

QString QgsOgrProvider::jsonStringValue( const QVariant &value, const QVariant::Type &type )
QString QgsOgrProvider::jsonStringValue( const QVariant &value, const QVariant::Type &type ) const
{
switch ( type )
{
@@ -285,7 +285,7 @@ class QgsOgrProvider : public QgsVectorDataProvider
mutable QStringList mSubLayerList;

//! converts \a value from json QVariant to QString regarding to \a type
QString jsonStringValue( const QVariant &value, const QVariant::Type &type );
QString jsonStringValue( const QVariant &value, const QVariant::Type &type ) const;

bool addFeaturePrivate( QgsFeature &f, QgsFeatureSink::Flags flags );
//! Deletes one feature

0 comments on commit 386c16f

Please sign in to comment.
You can’t perform that action at this time.