Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix windows build and some warnings
(cherry picked from commit a5ac126)
  • Loading branch information
jef-n authored and nyalldawson committed Feb 16, 2021
1 parent b230f28 commit fcdc66a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/3d/terrain/qgsterraindownloader.h
Expand Up @@ -59,12 +59,12 @@ class _3D_EXPORT QgsTerrainDownloader
~QgsTerrainDownloader();

//! Definition of data source for terrain tiles (assuming "terrarium" data encoding with usual XYZ tiling scheme)
typedef struct
struct DataSource
{
QString uri; //!< HTTP(S) template for XYZ tiles requests (e.g. http://example.com/{z}/{x}/{y}.png)
int zMin = 0; //!< Minimum zoom level (Z) with valid data
int zMax = 0; //!< Maximum zoom level (Z) with valid data
} DataSource;
};

//! Returns the data source used by default
static DataSource defaultDataSource();
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsdatabasetablemodel.cpp
Expand Up @@ -122,11 +122,11 @@ QVariant QgsDatabaseTableModel::data( const QModelIndex &index, int role ) const
{
return QgsLayerItem::iconPoint();
}
case QgsWkbTypes::PolygonGeometry :
case QgsWkbTypes::PolygonGeometry:
{
return QgsLayerItem::iconPolygon();
}
case QgsWkbTypes::LineGeometry :
case QgsWkbTypes::LineGeometry:
{
return QgsLayerItem::iconLine();
}
Expand Down
2 changes: 0 additions & 2 deletions src/providers/wms/qgswmscapabilities.cpp
Expand Up @@ -453,8 +453,6 @@ QDateTime QgsWmsSettings::parseWmstDateTimes( QString item )
// Standard item will have YYYY-MM-DDTHH:mm:ss.SSSZ
// format a Qt::ISODateWithMs

QString format = "yyyy-MM-ddTHH:mm:ss.SSSZ";

// Check if it does not have time part
if ( !item.contains( 'T' ) )
return QDateTime::fromString( item, "yyyy-MM-dd" );
Expand Down

0 comments on commit fcdc66a

Please sign in to comment.