Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 3, 2012
1 parent dcef083 commit 33682f2
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
6 changes: 1 addition & 5 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -919,12 +919,12 @@ bool QgsRasterLayer::hasStatistics( int theBandNo )
}
#endif

#if 0
/**
* @param thePoint the QgsPoint for which to obtain pixel values
* @param theResults QMap to hold the pixel values at thePoint for each layer in the raster file
* @return False if WMS layer and true otherwise
*/
#if 0
bool QgsRasterLayer::identify( const QgsPoint& thePoint, QMap<QString, QString>& theResults )
{
theResults.clear();
Expand Down Expand Up @@ -1019,10 +1019,6 @@ QString QgsRasterLayer::identifyAsHtml( const QgsPoint& thePoint )
}
#endif

/**
* @note Note implemented yet
* @return Always returns false
*/
bool QgsRasterLayer::isEditable() const
{
return false;
Expand Down
2 changes: 2 additions & 0 deletions src/core/symbology-ng/qgscptcityarchive.cpp
Expand Up @@ -860,8 +860,10 @@ QgsCptCityDirectoryItem::QgsCptCityDirectoryItem( QgsCptCityDataItem* parent,
mType = Directory;
mValid = QDir( QgsCptCityArchive::defaultBaseDir() ).exists();
if ( ! mValid )
{
QgsDebugMsg( "created invalid dir item, path = " + QgsCptCityArchive::defaultBaseDir()
+ QDir::separator() + mPath );
}

// parse DESC.xml to get mInfo
mInfo = "";
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgsstylev2.cpp
Expand Up @@ -881,7 +881,7 @@ bool QgsStyleV2::detagSymbol( StyleEntity type, QString symbol, QStringList tags
sqlite3_stmt *ppStmt;
int nErr = sqlite3_prepare_v2( mCurrentDB, query, -1, &ppStmt, NULL );

int symbolid;
int symbolid = 0;
if ( nErr == SQLITE_OK && sqlite3_step( ppStmt ) == SQLITE_ROW )
{
symbolid = sqlite3_column_int( ppStmt, 0 );
Expand Down
3 changes: 3 additions & 0 deletions src/gui/qgserrordialog.h
Expand Up @@ -32,6 +32,9 @@ class GUI_EXPORT QgsErrorDialog: public QDialog, private Ui::QgsErrorDialogBase

/** Show dialog with error
* @param theError error
* @param theTitle title
* @param parent parent object
* @param fl widget flags
*/
static void show( const QgsError & theError, const QString & theTitle, QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags );

Expand Down
2 changes: 1 addition & 1 deletion src/mapserver/qgsfilter.cpp
Expand Up @@ -96,7 +96,7 @@ QgsFilter* QgsFilter::createFilterFromXml( const QDomElement& filterElem, QgsVec
// if the filter is spatial
if ( filterName == "BBOX" || filterName == "CONTAINS" || filterName == "CROSSES" || filterName == "DISJOINT" || filterName == "EQUALS" || filterName == "INTERSECTS" || filterName == "OVERLAPS" || filterName == "TOUCHES" || filterName == "WITHIN" )
{
QgsGeometry* geom;
QgsGeometry *geom = 0;

QDomNodeList bNodes = filterElem.elementsByTagName( "Box" );
if ( bNodes.size() > 0 )
Expand Down
1 change: 1 addition & 0 deletions src/mapserver/qgswmsserver.cpp
Expand Up @@ -1445,6 +1445,7 @@ void QgsWMSServer::drawLegendLayerItem( QgsComposerLayerItem* item, QPainter* p,
double layerTitleSpace, double symbolSpace, double iconLabelSpace, double symbolWidth, double symbolHeight, double fontOversamplingFactor,
double dpi ) const
{
Q_UNUSED( layerSpace );
if ( !item )
{
return;
Expand Down
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -2476,7 +2476,7 @@ bool QgsPostgresProvider::changeGeometryValues( QgsGeometryMap & geometry_map )
QgsDebugMsg( "iterating over feature id " + FID_TO_STRING( iter.key() ) );

// Save the id of the current topogeometry
long old_tg_id;
long old_tg_id = -1;
if ( mSpatialColType == sctTopoGeometry )
{
QStringList params;
Expand Down

0 comments on commit 33682f2

Please sign in to comment.