Commit 756ee5dc authored by Julien Michel's avatar Julien Michel

STY: Change ITK_OVERRIDE for override in whole code (find Modules -type f...

STY: Change ITK_OVERRIDE for override in whole code (find Modules -type f -exec sed -i 's/ITK_OVERRIDE/override/g' {} +)
parent 0769470e

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

......@@ -48,19 +48,19 @@ public:
itkTypeMacro(CurlHelper, CurlHelperInterface);
itkNewMacro(Self);
bool TestUrlAvailability(const std::string& url) const ITK_OVERRIDE;
bool TestUrlAvailability(const std::string& url) const override;
bool IsCurlReturnHttpError(const std::string& url) const;
int RetrieveFile(const std::ostringstream& urlStream, std::string filename) const ITK_OVERRIDE;
int RetrieveFile(const std::ostringstream& urlStream, std::string filename) const override;
int RetrieveFile(const std::string& urlString, std::string filename) const ITK_OVERRIDE;
int RetrieveFile(const std::string& urlString, std::string filename) const override;
int RetrieveUrlInMemory(const std::string& urlString, std::string& output) const ITK_OVERRIDE;
int RetrieveUrlInMemory(const std::string& urlString, std::string& output) const override;
int RetrieveFileMulti(const std::vector<std::string>& listURLs,
const std::vector<std::string>& listFiles,
int maxConnect) const ITK_OVERRIDE;
int maxConnect) const override;
itkGetMacro(Timeout,long int);
......@@ -71,7 +71,7 @@ protected:
m_Browser("Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.8.1.11) "
"Gecko/20071127 Firefox/2.0.0.11"),
m_Timeout(10) {}
~CurlHelper() ITK_OVERRIDE {}
~CurlHelper() override {}
private:
CurlHelper(const Self &); //purposely not implemented
......
......@@ -66,7 +66,7 @@ public:
protected:
CurlHelperInterface() {}
~CurlHelperInterface() ITK_OVERRIDE {}
~CurlHelperInterface() override {}
private:
CurlHelperInterface(const Self &); //purposely not implemented
......
......@@ -47,20 +47,20 @@ public:
itkNewMacro(Self);
bool TestUrlAvailability(const std::string& url) const ITK_OVERRIDE;
bool TestUrlAvailability(const std::string& url) const override;
int RetrieveUrlInMemory(const std::string& urlString, std::string& output) const ITK_OVERRIDE;
int RetrieveUrlInMemory(const std::string& urlString, std::string& output) const override;
int RetrieveFile(const std::ostringstream& urlStream, std::string filename) const ITK_OVERRIDE;
int RetrieveFile(const std::ostringstream& urlStream, std::string filename) const override;
int RetrieveFile(const std::string& urlString, std::string filename) const ITK_OVERRIDE;
int RetrieveFile(const std::string& urlString, std::string filename) const override;
int RetrieveFileMulti(const std::vector<std::string>& listURLs,
const std::vector<std::string>& listFiles,
int maxConnect) const ITK_OVERRIDE;
int maxConnect) const override;
protected:
CurlHelperStub() {}
~CurlHelperStub() ITK_OVERRIDE {}
~CurlHelperStub() override {}
private:
CurlHelperStub(const Self &); //purposely not implemented
......
......@@ -94,7 +94,7 @@ protected:
}
}
~CurlResource() ITK_OVERRIDE
~CurlResource() override
{
curl_easy_cleanup(m_Curl);
}
......@@ -140,7 +140,7 @@ protected:
}
}
~CurlMultiResource() ITK_OVERRIDE
~CurlMultiResource() override
{
curl_multi_cleanup(m_Curl);
}
......@@ -187,7 +187,7 @@ public:
protected:
CurlFileDescriptorResource(){}
~CurlFileDescriptorResource() ITK_OVERRIDE
~CurlFileDescriptorResource() override
{
fclose(m_File);
}
......
......@@ -159,10 +159,10 @@ protected:
GeometriesSet(ogr::Layer layer);
/** Destructor. */
~GeometriesSet() ITK_OVERRIDE;
~GeometriesSet() override;
/** Prints self to stream. */
void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE;
void PrintSelf(std::ostream& os, itk::Indent indent) const override;
private:
typedef boost::variant<ogr::DataSource::Pointer, ogr::Layer> AnyGeometriesSetType;
AnyGeometriesSetType m_GeometriesSet;
......
......@@ -119,7 +119,7 @@ public:
* initializing them.
* \post <tt>GetOutput() != NULL</tt>
*/
void PrepareOutputs() ITK_OVERRIDE;
void PrepareOutputs() override;
protected:
/** Default constructor.
......@@ -129,7 +129,7 @@ protected:
/** Destructor.
* Does nothing.
*/
~GeometriesSource() ITK_OVERRIDE;
~GeometriesSource() override;
/** Ensures that the output geometries are allocated before processing.
* If the output hasn't been set, at this point, the default output geometries
......
......@@ -91,13 +91,13 @@ protected:
/** Destructor.
* Does nothing.
*/
~GeometriesToGeometriesFilter() ITK_OVERRIDE;
~GeometriesToGeometriesFilter() override;
/** Processes the input to fill the output.
* This is the main processing function. It either works \em in-place or by
* \em copying the transformed input \c Feature s into the output.
*/
void GenerateData(void) ITK_OVERRIDE;
void GenerateData(void) override;
private:
/** \e In-place processing function.
......@@ -364,7 +364,7 @@ protected:
/** Default constructor. */
DefaultGeometriesToGeometriesFilter();
/** Destructor. */
~DefaultGeometriesToGeometriesFilter() ITK_OVERRIDE;
~DefaultGeometriesToGeometriesFilter() override;
/**
* Hook that actually filters an OGR \c Layer.
......@@ -376,7 +376,7 @@ protected:
* \note When <tt>source == destination</tt>, it means this is an \em in-place
* filter.
*/
void DoProcessLayer(ogr::Layer const& source, ogr::Layer & destination) const ITK_OVERRIDE;
void DoProcessLayer(ogr::Layer const& source, ogr::Layer & destination) const override;
/**
* Hook used to define the fields of the new layer.
* \param[in] source source \c Layer -- for reference
......@@ -385,7 +385,7 @@ protected:
* Just forwards the fields definition to the \c FieldTransformationPolicy
* inherited from the \c TransformationFunctorDispatcherType.
*/
void DoDefineNewLayerFields(ogr::Layer const& source, ogr::Layer & dest) const ITK_OVERRIDE
void DoDefineNewLayerFields(ogr::Layer const& source, ogr::Layer & dest) const override
{
this->DefineFields(source, dest);
}
......
......@@ -291,7 +291,7 @@ public:
* meta information of another data source and use the same underlying \c
* GDALDataset.
*/
void Graft(const itk::DataObject *data) ITK_OVERRIDE;
void Graft(const itk::DataObject *data) override;
/**
* Resets current data source with the one in parameter.
......@@ -515,12 +515,12 @@ protected:
/** Destructor.
* \post The \c GDALDataset owned is released (if not null).
*/
~DataSource() ITK_OVERRIDE;
~DataSource() override;
static Pointer OpenDataSource(std::string const& datasourceName, Modes::type mode);
/** Prints self into stream. */
void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE;
void PrintSelf(std::ostream& os, itk::Indent indent) const override;
private:
/**
......
......@@ -132,7 +132,7 @@ template
* <tt> = T</tt>)
*
* \internal
* This ITK_OVERRIDE is required because of the particular nature of the
* This override is required because of the particular nature of the
* <tt>char**</tt> type chosen by OGR API, plus the fact this is the only
* const-correct getter...