Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jul 28, 2014
1 parent 3737094 commit 53e1aba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgsfeatureaction.cpp
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 53e1aba

Please sign in to comment.