Skip to content

Commit 53e1aba

Browse files
committed
Fix some warnings
1 parent 3737094 commit 53e1aba

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/app/qgsfeatureaction.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ bool QgsFeatureAction::addFeature( const QgsAttributeMap& defaultAttributes )
223223
void QgsFeatureAction::onFeatureSaved( const QgsFeature& feature )
224224
{
225225
QgsAttributeForm* form = qobject_cast<QgsAttributeForm*>( sender() );
226+
Q_UNUSED( form ) // only used for Q_ASSERT
226227
Q_ASSERT( form );
227228

228229
mFeatureSaved = true;

src/gui/qgsattributeform.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ void QgsAttributeForm::onAttributeChanged( const QVariant& value )
245245

246246
void QgsAttributeForm::onAttributeAdded( int idx )
247247
{
248+
Q_UNUSED( idx ) // only used for Q_ASSERT
248249
if ( mFeature.isValid() )
249250
{
250251
QgsAttributes attrs = mFeature.attributes();

0 commit comments

Comments
 (0)