Skip to content

Commit 1a38c5f

Browse files
hjmjohnsondzenanz
authored andcommitted
COMP: Remove unused variables and set override.
1 parent df65753 commit 1a38c5f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Filtering/Convolution/NormalizedCorrelationOfMaskedImage/Code.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void CreateImageOfSquare(ImageType* const image, const itk::Index<2>& cornerOfSq
4040
template <typename TImage>
4141
void WriteImage(const TImage* const image, const std::string& filename);
4242

43-
int main(int argc, char *argv[])
43+
int main(int , char *[])
4444
{
4545
// Setup mask
4646
MaskType::Pointer mask = MaskType::New();

src/Numerics/Optimizers/ExampleCostFunction.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ namespace itk
2424
/** Run-time type information (and related methods). */
2525
itkTypeMacro(ExampleCostFunction2, SingleValuedCostfunction);
2626

27-
unsigned int GetNumberOfParameters(void) const { return 2; } // itk::CostFunction
27+
unsigned int GetNumberOfParameters(void) const override { return 2; } // itk::CostFunction
2828

29-
MeasureType GetValue(const ParametersType & parameters) const {
29+
MeasureType GetValue(const ParametersType & parameters) const override {
3030
return pow(parameters[0]+5, 2)+pow(parameters[1]-7, 2)+5;
3131
}
3232

3333
void GetDerivative(const ParametersType &,
34-
DerivativeType & derivative ) const {
34+
DerivativeType & /*derivative*/ ) const override {
3535
throw itk::ExceptionObject( __FILE__, __LINE__, "No derivative is available for this cost function.");
3636
}
3737

@@ -46,4 +46,4 @@ namespace itk
4646

4747
} // end namespace itk
4848

49-
#endif
49+
#endif

0 commit comments

Comments
 (0)