Skip to content

Commit 07eb39f

Browse files
authored
Merge pull request InsightSoftwareConsortium#5918 from blowekamp/fix-nightly-reserved-identifiers
COMP: Fix -Wreserved-identifier warnings in several source files
2 parents 30d58e3 + bf3b569 commit 07eb39f

File tree

8 files changed

+32
-32
lines changed

8 files changed

+32
-32
lines changed

Modules/Core/Common/include/itkFiniteCylinderSpatialFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class ITK_TEMPLATE_EXPORT FiniteCylinderSpatialFunction : public InteriorExterio
7979
/** @ITKStartGrouping */
8080
itkGetConstMacro(Orientation, InputType);
8181
virtual void
82-
SetOrientation(const InputType _Orientation);
82+
SetOrientation(const InputType orientation);
8383
/** @ITKEndGrouping */
8484
/** Evaluates the function at a given position. */
8585
OutputType

Modules/Core/Common/include/itkFiniteCylinderSpatialFunction.hxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ FiniteCylinderSpatialFunction<VDimension, TInput>::FiniteCylinderSpatialFunction
3939

4040
template <unsigned int VDimension, typename TInput>
4141
void
42-
FiniteCylinderSpatialFunction<VDimension, TInput>::SetOrientation(const InputType _Orientation)
42+
FiniteCylinderSpatialFunction<VDimension, TInput>::SetOrientation(const InputType orientation)
4343
{
44-
itkDebugMacro("setting Orientation to " << _Orientation);
45-
if (this->m_Orientation != _Orientation)
44+
itkDebugMacro("setting Orientation to " << orientation);
45+
if (this->m_Orientation != orientation)
4646
{
47-
this->m_Orientation = _Orientation;
47+
this->m_Orientation = orientation;
4848
//
4949
// save normalizedOrientation, so it doesn't need to be recomputed
5050
// in every call of Evaluate.

Modules/Core/Common/include/itkImageAlgorithm.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ struct ImageAlgorithm
8686
const typename Image<TPixel1, VImageDimension>::RegionType & inRegion,
8787
const typename Image<TPixel2, VImageDimension>::RegionType & outRegion)
8888
{
89-
using _ImageType1 = Image<TPixel1, VImageDimension>;
90-
using _ImageType2 = Image<TPixel2, VImageDimension>;
89+
using ImageType1 = Image<TPixel1, VImageDimension>;
90+
using ImageType2 = Image<TPixel2, VImageDimension>;
9191
ImageAlgorithm::DispatchedCopy(
9292
inImage,
9393
outImage,
9494
inRegion,
9595
outRegion,
96-
std::is_convertible<typename _ImageType1::PixelType, typename _ImageType2::PixelType>());
96+
std::is_convertible<typename ImageType1::PixelType, typename ImageType2::PixelType>());
9797
}
9898

9999
template <typename TPixel1, typename TPixel2, unsigned int VImageDimension>
@@ -103,14 +103,14 @@ struct ImageAlgorithm
103103
const typename VectorImage<TPixel1, VImageDimension>::RegionType & inRegion,
104104
const typename VectorImage<TPixel2, VImageDimension>::RegionType & outRegion)
105105
{
106-
using _ImageType1 = VectorImage<TPixel1, VImageDimension>;
107-
using _ImageType2 = VectorImage<TPixel2, VImageDimension>;
106+
using ImageType1 = VectorImage<TPixel1, VImageDimension>;
107+
using ImageType2 = VectorImage<TPixel2, VImageDimension>;
108108
ImageAlgorithm::DispatchedCopy(
109109
inImage,
110110
outImage,
111111
inRegion,
112112
outRegion,
113-
std::is_convertible<typename _ImageType1::PixelType, typename _ImageType2::PixelType>());
113+
std::is_convertible<typename ImageType1::PixelType, typename ImageType2::PixelType>());
114114
}
115115

116116
/// \endcond

Modules/Core/Common/include/itkImageAlgorithm.hxx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ ImageAlgorithm::DispatchedCopy(const InputImageType * inIm
9494
const typename OutputImageType::RegionType & outRegion,
9595
TrueType)
9696
{
97-
using _RegionType = typename InputImageType::RegionType;
98-
using _IndexType = typename InputImageType::IndexType;
97+
using RegionType = typename InputImageType::RegionType;
98+
using IndexType = typename InputImageType::IndexType;
9999

100100
// Get the number of bytes of each pixel in the buffer.
101101
const size_t NumberOfInternalComponents = ImageAlgorithm::PixelSize<InputImageType>::Get(inImage);
@@ -112,8 +112,8 @@ ImageAlgorithm::DispatchedCopy(const InputImageType * inIm
112112
const typename InputImageType::InternalPixelType * in = inImage->GetBufferPointer();
113113
typename OutputImageType::InternalPixelType * out = outImage->GetBufferPointer();
114114

115-
const _RegionType & inBufferedRegion = inImage->GetBufferedRegion();
116-
const _RegionType & outBufferedRegion = outImage->GetBufferedRegion();
115+
const RegionType & inBufferedRegion = inImage->GetBufferedRegion();
116+
const RegionType & outBufferedRegion = outImage->GetBufferedRegion();
117117

118118
// Compute the number of continuous pixel which can be copied.
119119
size_t numberOfPixel = 1;
@@ -125,15 +125,15 @@ ImageAlgorithm::DispatchedCopy(const InputImageType * inIm
125125
}
126126
// The copy regions must extend to the full buffered region, to
127127
// ensure continuity of pixels between dimensions.
128-
while (movingDirection < _RegionType::ImageDimension &&
128+
while (movingDirection < RegionType::ImageDimension &&
129129
inRegion.GetSize(movingDirection - 1) == inBufferedRegion.GetSize(movingDirection - 1) &&
130130
outRegion.GetSize(movingDirection - 1) == outBufferedRegion.GetSize(movingDirection - 1) &&
131131
inBufferedRegion.GetSize(movingDirection - 1) == outBufferedRegion.GetSize(movingDirection - 1));
132132

133133
const size_t sizeOfChunkInInternalComponents = numberOfPixel * NumberOfInternalComponents;
134134

135-
_IndexType inCurrentIndex = inRegion.GetIndex();
136-
_IndexType outCurrentIndex = outRegion.GetIndex();
135+
IndexType inCurrentIndex = inRegion.GetIndex();
136+
IndexType outCurrentIndex = outRegion.GetIndex();
137137

138138
while (inRegion.IsInside(inCurrentIndex))
139139
{
@@ -143,7 +143,7 @@ ImageAlgorithm::DispatchedCopy(const InputImageType * inIm
143143
size_t inSubDimensionQuantity = 1; // in pixels
144144
size_t outSubDimensionQuantity = 1;
145145

146-
for (unsigned int i = 0; i < _RegionType::ImageDimension; ++i)
146+
for (unsigned int i = 0; i < RegionType::ImageDimension; ++i)
147147
{
148148
inOffset += inSubDimensionQuantity * static_cast<size_t>(inCurrentIndex[i] - inBufferedRegion.GetIndex(i));
149149
inSubDimensionQuantity *= inBufferedRegion.GetSize(i);
@@ -157,14 +157,14 @@ ImageAlgorithm::DispatchedCopy(const InputImageType * inIm
157157

158158
CopyHelper(inBuffer, inBuffer + sizeOfChunkInInternalComponents, outBuffer);
159159

160-
if (movingDirection == _RegionType::ImageDimension)
160+
if (movingDirection == RegionType::ImageDimension)
161161
{
162162
break;
163163
}
164164

165165
// increment index to next chunk
166166
++inCurrentIndex[movingDirection];
167-
for (unsigned int i = movingDirection; i + 1 < _RegionType::ImageDimension; ++i)
167+
for (unsigned int i = movingDirection; i + 1 < RegionType::ImageDimension; ++i)
168168
{
169169
// When reaching the end of the moving index in the copy region
170170
// dimension, carry to higher dimensions.
@@ -177,7 +177,7 @@ ImageAlgorithm::DispatchedCopy(const InputImageType * inIm
177177

178178
// increment index to next chunk
179179
++outCurrentIndex[movingDirection];
180-
for (unsigned int i = movingDirection; i + 1 < _RegionType::ImageDimension; ++i)
180+
for (unsigned int i = movingDirection; i + 1 < RegionType::ImageDimension; ++i)
181181
{
182182
if (static_cast<SizeValueType>(outCurrentIndex[i] - outRegion.GetIndex(i)) >= outRegion.GetSize(i))
183183
{

Modules/Core/Common/include/itkSymmetricEigenAnalysis.hxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ SymmetricEigenAnalysis<TMatrix, TVector, TEigenMatrix>::ReduceToTridiagonalMatri
174174

175175
e2[i] = scale * scale * h;
176176
double f = d[l];
177-
const double d__1 = std::sqrt(h);
178-
double g = (-1.0) * itk::Math::sgn0(f) * itk::Math::Absolute(d__1);
177+
const double d1 = std::sqrt(h);
178+
double g = (-1.0) * itk::Math::sgn0(f) * itk::Math::Absolute(d1);
179179
e[i] = scale * g;
180180
h -= f * g;
181181
d[l] = f - g;
@@ -288,8 +288,8 @@ SymmetricEigenAnalysis<TMatrix, TVector, TEigenMatrix>::ReduceToTridiagonalMatri
288288
}
289289

290290
double f = d[l];
291-
const double d__1 = std::sqrt(h);
292-
double g = (-1.0) * itk::Math::sgn0(f) * itk::Math::Absolute(d__1);
291+
const double d1 = std::sqrt(h);
292+
double g = (-1.0) * itk::Math::sgn0(f) * itk::Math::Absolute(d1);
293293
e[i] = scale * g;
294294
h -= f * g;
295295
d[l] = f - g;

Modules/IO/IPL/include/itkIPLFileNameList.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ class ITKIOIPL_EXPORT IPLFileNameList
152152
}
153153

154154
IPLFileSortInfo *
155-
operator[](unsigned int __n)
155+
operator[](unsigned int n)
156156
{
157157
auto it = begin();
158158
auto itend = end();
159159

160-
for (unsigned int i = 0; it != itend && i != __n; it++, i++)
160+
for (unsigned int i = 0; it != itend && i != n; it++, i++)
161161
{
162162
}
163163
if (it == itend)

Modules/IO/Meta/src/itkMetaImageIO.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// Function to join strings with a delimiter similar to python's ' '.join([1, 2, 3 ])
3131
template <typename ContainerType, typename DelimiterType, typename StreamType>
3232
static auto
33-
_join(const ContainerType & elements, const DelimiterType & delimiter, StreamType & strs) -> void
33+
joinElements(const ContainerType & elements, const DelimiterType & delimiter, StreamType & strs) -> void
3434
{
3535
for (size_t i = 0; i < elements.size(); ++i)
3636
{
@@ -510,7 +510,7 @@ MetaImageIO::WriteImageInformation()
510510
}
511511
else if (ExposeMetaData<std::vector<double>>(metaDict, key, vval))
512512
{
513-
_join(vval, ' ', strs);
513+
joinElements(vval, ' ', strs);
514514
}
515515
else if (WriteMatrixInMetaData<1>(strs, metaDict, key) || WriteMatrixInMetaData<2>(strs, metaDict, key) ||
516516
WriteMatrixInMetaData<3>(strs, metaDict, key) || WriteMatrixInMetaData<4>(strs, metaDict, key) ||

Modules/IO/TIFF/include/itkTIFFImageIO.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ class ITKIOTIFF_EXPORT TIFFImageIO : public ImageIOBase
169169
* 100 is the highest quality. Default is 75 */
170170
/** @ITKStartGrouping */
171171
virtual void
172-
SetJPEGQuality(int _JPEGQuality)
172+
SetJPEGQuality(int jpegQuality)
173173
{
174-
this->SetCompressionLevel(_JPEGQuality);
174+
this->SetCompressionLevel(jpegQuality);
175175
}
176176
virtual int
177177
GetJPEGQuality() const

0 commit comments

Comments
 (0)