Fix some warnings

This commit is contained in:
Matthias Kuhn 2014-07-28 11:49:32 +02:00
parent 37370942c6
commit 53e1aba839
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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();