mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix some warnings
This commit is contained in:
parent
37370942c6
commit
53e1aba839
@ -223,6 +223,7 @@ bool QgsFeatureAction::addFeature( const QgsAttributeMap& defaultAttributes )
|
||||
void QgsFeatureAction::onFeatureSaved( const QgsFeature& feature )
|
||||
{
|
||||
QgsAttributeForm* form = qobject_cast<QgsAttributeForm*>( sender() );
|
||||
Q_UNUSED( form ) // only used for Q_ASSERT
|
||||
Q_ASSERT( form );
|
||||
|
||||
mFeatureSaved = true;
|
||||
|
@ -245,6 +245,7 @@ void QgsAttributeForm::onAttributeChanged( const QVariant& value )
|
||||
|
||||
void QgsAttributeForm::onAttributeAdded( int idx )
|
||||
{
|
||||
Q_UNUSED( idx ) // only used for Q_ASSERT
|
||||
if ( mFeature.isValid() )
|
||||
{
|
||||
QgsAttributes attrs = mFeature.attributes();
|
||||
|
Loading…
x
Reference in New Issue
Block a user