Skip to content

Commit

Permalink
STYLE: Use override statements for C++11
Browse files Browse the repository at this point in the history
Describe function overrides using the override
keyword from C++11.

SRCDIR= #My local SRC
BLDDIR= #My local BLD

cd
run-clang-tidy.py -extra-arg=-D__clang__ -checks=-*,modernize-use-override  -header-filter=.* -fix
  • Loading branch information
hjmjohnson authored and dzenanz committed Mar 2, 2020
1 parent 83573ed commit 6780a2e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions include/itkScancoImageIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class IOScanco_EXPORT ScancoImageIO : public ImageIOBase
* while others can support 2D, 3D, or even n-D. This method returns
* true/false as to whether the ImageIO can support the dimension
* indicated. */
virtual bool
bool
SupportsDimension(unsigned long dimension) override
{
if (dimension == 3)
Expand All @@ -102,41 +102,41 @@ class IOScanco_EXPORT ScancoImageIO : public ImageIOBase

/** Determine the file type. Returns true if this ImageIO can read the
* file specified. */
virtual bool
bool
CanReadFile(const char *) override;

/** Set the spacing and dimension information for the set filename. */
virtual void
void
ReadImageInformation() override;

/** Reads the data from disk into the memory buffer provided. */
virtual void
void
Read(void * buffer) override;

/*-------- This part of the interfaces deals with writing data. ----- */

/** Determine the file type. Returns true if this ImageIO can write the
* file specified. */
virtual bool
bool
CanWriteFile(const char *) override;

/** Set the spacing and dimension information for the set filename. */
virtual void
void
WriteImageInformation() override;

/** Writes the data to disk from the memory buffer provided. Make sure
* that the IORegions has been set properly. */
virtual void
void
Write(const void * buffer) override;


virtual bool
bool
CanStreamRead() override
{
return false;
}

virtual bool
bool
CanStreamWrite() override
{
return false;
Expand Down Expand Up @@ -236,9 +236,9 @@ class IOScanco_EXPORT ScancoImageIO : public ImageIOBase

protected:
ScancoImageIO();
~ScancoImageIO();
~ScancoImageIO() override;

virtual void
void
PrintSelf(std::ostream & os, Indent indent) const override;

private:
Expand Down
4 changes: 2 additions & 2 deletions include/itkScancoImageIOFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ class IOScanco_EXPORT ScancoImageIOFactory : public ObjectFactoryBase
using ConstPointer = SmartPointer<const Self>;

/** Class methods used to interface with the registered factories. */
virtual const char *
const char *
GetITKSourceVersion() const override;

virtual const char *
const char *
GetDescription() const override;

/** Method for class instantiation. */
Expand Down

0 comments on commit 6780a2e

Please sign in to comment.