Skip to content
Permalink
Browse files

small tweaks,eg. remove of unwanted spaces

  • Loading branch information
Samweli authored and nyalldawson committed Mar 4, 2020
1 parent 8848cbd commit 4abaee8cac889d364e0665e103ac9d87b1abfb27
@@ -1871,7 +1871,6 @@ bool QgsMapLayer::accept( QgsStyleEntityVisitorInterface * ) const
return true;
}


void QgsMapLayer::setProviderType( const QString &providerType )
{
mProviderKey = providerType;
@@ -38,7 +38,6 @@ void QgsTemporalRangeObject::setTemporalRange( const QgsDateTimeRange &dateTimeR
setIsTemporal( true );

mDateTimeRange = dateTimeRange;

}

const QgsDateTimeRange &QgsTemporalRangeObject::temporalRange() const
@@ -48,7 +48,6 @@ class QByteArray;
class QgsPointXY;
class QgsRasterIdentifyResult;
class QgsMapSettings;
class QgsWmsProvider;

/**
* \brief Handles asynchronous download of images
@@ -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;
@@ -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
@@ -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()
@@ -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;
}

0 comments on commit 4abaee8

Please sign in to comment.
You can’t perform that action at this time.