Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix warnings
  • Loading branch information
jef-n committed Mar 29, 2012
1 parent b8bd36c commit 9058059
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/analysis/raster/qgsrastercalcparser.yy
Expand Up @@ -110,6 +110,7 @@ void addToTmpNodes(QgsRasterCalcNode* node)
void joinTmpNodes(QgsRasterCalcNode* parent, QgsRasterCalcNode* left, QgsRasterCalcNode* right)
{
bool res;
Q_UNUSED(res);

if (left)
{
Expand Down
7 changes: 5 additions & 2 deletions src/plugins/heatmap/heatmapgui.cpp
Expand Up @@ -190,19 +190,22 @@ void HeatmapGui::on_cellYLineEdit_editingFinished()

void HeatmapGui::on_radiusFieldUnitCombo_currentIndexChanged( int index )
{
Q_UNUSED( index );
updateBBox();
// DebugMsg to avoid index not used warning
QgsDebugMsg( QString( "Unit index set to %1" ).arg( index ) );
}

void HeatmapGui::on_mRadiusUnitCombo_currentIndexChanged( int index )
{
Q_UNUSED( index );
QgsDebugMsg( QString( "Unit index set to %1" ).arg( index ) );
updateBBox();
}

void HeatmapGui::on_mInputVectorCombo_currentIndexChanged( int index )
{
Q_UNUSED( index );
if ( advancedGroupBox->isChecked() )
{
populateFields();
Expand Down Expand Up @@ -241,7 +244,7 @@ void HeatmapGui::enableOrDisableOkButton()
void HeatmapGui::populateFields()
{
QgsVectorLayer* inputLayer = inputVectorLayer();
if( !inputLayer )
if ( !inputLayer )
return;

// The fields
Expand Down Expand Up @@ -273,7 +276,7 @@ void HeatmapGui::updateBBox()
{
// Set the row/cols and cell sizes here
QgsVectorLayer *inputLayer = inputVectorLayer();
if( !inputLayer )
if ( !inputLayer )
return;

mBBox = inputLayer->extent();
Expand Down
2 changes: 2 additions & 0 deletions src/providers/mssql/qgsmssqlprovider.cpp
Expand Up @@ -572,7 +572,9 @@ void QgsMssqlProvider::select( QgsAttributeList fetchAttributes,
}
}
else
{
QgsDebugMsg( "QgsMssqlProvider::select no fields have been requested" );
}
}

// update the extent, feature count, wkb type and srid for this layer
Expand Down
3 changes: 2 additions & 1 deletion src/providers/mssql/qgsmssqltablemodel.cpp
Expand Up @@ -310,8 +310,9 @@ QIcon QgsMssqlTableModel::iconForWkbType( QGis::WkbType type )
case QGis::WKBNoGeometry:
return QIcon( QgsDataItem::getThemePixmap( "/mIconTableLayer.png" ) );
case QGis::WKBUnknown:
return QIcon( QgsDataItem::getThemePixmap( "/mIconLayer.png" ) );
break;
}
return QIcon( QgsDataItem::getThemePixmap( "/mIconLayer.png" ) );
}

bool QgsMssqlTableModel::setData( const QModelIndex &idx, const QVariant &value, int role )
Expand Down
3 changes: 2 additions & 1 deletion src/providers/postgres/qgspgtablemodel.cpp
Expand Up @@ -311,8 +311,9 @@ QIcon QgsPgTableModel::iconForWkbType( QGis::WkbType type )
case QGis::WKBNoGeometry:
return QIcon( QgsDataItem::getThemePixmap( "/mIconTableLayer.png" ) );
case QGis::WKBUnknown:
return QIcon( QgsDataItem::getThemePixmap( "/mIconLayer.png" ) );
break;
}
return QIcon( QgsDataItem::getThemePixmap( "/mIconLayer.png" ) );
}

bool QgsPgTableModel::setData( const QModelIndex &idx, const QVariant &value, int role )
Expand Down
1 change: 0 additions & 1 deletion src/ui/qgsfieldcalculatorbase.ui
Expand Up @@ -155,7 +155,6 @@
<property name="autoFillBackground">
<bool>false</bool>
</property>
<zorder>mButtonBox</zorder>
</widget>
</item>
<item row="3" column="0" colspan="2">
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgsnewogrconnectionbase.ui
Expand Up @@ -37,7 +37,7 @@
<property name="title">
<string>Connection Information</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<layout class="QGridLayout" name="gridLayout_1">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgsprojectpropertiesbase.ui
Expand Up @@ -488,7 +488,7 @@
<property name="title">
<string>WMS Capabilitities</string>
</property>
<layout class="QGridLayout" name="gridLayout_7">
<layout class="QGridLayout" name="gridLayout_10">
<item row="1" column="0">
<widget class="QGroupBox" name="grpWMSExt">
<property name="title">
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgsvectorlayerpropertiesbase.ui
Expand Up @@ -731,7 +731,7 @@
<height>497</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
<layout class="QGridLayout" name="gridLayout_17">
<item row="0" column="0">
<widget class="QPushButton" name="mButtonAddJoin">
<property name="text">
Expand Down

0 comments on commit 9058059

Please sign in to comment.