Skip to content

Commit

Permalink
STYLE: Make prototype match definition names
Browse files Browse the repository at this point in the history
Enforce consistency in large projects, where it often happens that a definition
of function is refactored, changing the parameter names, but its declaration in
header file is not updated. With this check, we can easily find and correct
such inconsistencies, keeping declaration and definition always in sync.

Unnamed parameters are allowed and are not taken into account when comparing
function declarations
  • Loading branch information
hjmjohnson committed Feb 19, 2020
1 parent ed12a49 commit 746464b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/itkMGHImageIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class MGHIO_EXPORT MGHImageIO : public ImageIOBase

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

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

Expand All @@ -78,7 +78,7 @@ class MGHIO_EXPORT MGHImageIO : public ImageIOBase
* \return Returns true if this ImageIO can write the file specified.
*/
bool
CanWriteFile(const char * FileNameToWrite) override;
CanWriteFile(const char * name) override;

/** Set the spacing and dimension information for the set filename. */
void
Expand Down

0 comments on commit 746464b

Please sign in to comment.