Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
small tweaks,eg. remove of unwanted spaces
  • Loading branch information
Samweli authored and nyalldawson committed Mar 5, 2020
1 parent 8848cbd commit 4abaee8
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/core/qgsmaplayer.cpp
Expand Up @@ -1871,7 +1871,6 @@ bool QgsMapLayer::accept( QgsStyleEntityVisitorInterface * ) const
return true;
}


void QgsMapLayer::setProviderType( const QString &providerType )
{
mProviderKey = providerType;
Expand Down
1 change: 0 additions & 1 deletion src/core/qgstemporalrangeobject.cpp
Expand Up @@ -38,7 +38,6 @@ void QgsTemporalRangeObject::setTemporalRange( const QgsDateTimeRange &dateTimeR
setIsTemporal( true );

mDateTimeRange = dateTimeRange;

}

const QgsDateTimeRange &QgsTemporalRangeObject::temporalRange() const
Expand Down
1 change: 0 additions & 1 deletion src/core/raster/qgsrasterdataprovider.h
Expand Up @@ -48,7 +48,6 @@ class QByteArray;
class QgsPointXY;
class QgsRasterIdentifyResult;
class QgsMapSettings;
class QgsWmsProvider;

/**
* \brief Handles asynchronous download of images
Expand Down
5 changes: 3 additions & 2 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -79,8 +79,6 @@ email : tim at linfiniti.com
#include <QRegExp>
#include <QSlider>



#define ERR(message) QGS_ERROR_MESSAGE(message,"Raster layer")

const double QgsRasterLayer::SAMPLE_SIZE = 250000;
Expand Down Expand Up @@ -2000,6 +1998,9 @@ bool QgsRasterLayer::writeXml( QDomNode &layer_node,
layer_node.appendChild( noData );
}

// write temporal properties
mTemporalProperties->writeXml( mapLayerNode, document, context );

writeStyleManager( layer_node, document );

//write out the symbology
Expand Down
4 changes: 2 additions & 2 deletions src/providers/wms/qgswmscapabilities.h
Expand Up @@ -408,8 +408,8 @@ struct QgsWmstResolution

bool active()
{
return year != -1 && month != -1 && day != -1 &&
hour != -1 && minutes != -1 && seconds != -1;
return year != -1 || month != -1 || day != -1 ||
hour != -1 || minutes != -1 || seconds != -1;
}

QString text()
Expand Down
1 change: 0 additions & 1 deletion src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -221,7 +221,6 @@ QgsWmsProvider *QgsWmsProvider::clone() const
QgsDataProvider::ProviderOptions options;
QgsWmsProvider *provider = new QgsWmsProvider( dataSourceUri(), options, mCaps.isValid() ? &mCaps : nullptr );
provider->copyBaseSettings( *this );

return provider;
}

Expand Down

0 comments on commit 4abaee8

Please sign in to comment.