Skip to content

Commit 4b5842f

Browse files
Lee Newbergdzenanz
authored andcommitted
STYLE: Method local variables should not have m_ prefix
1 parent 090cb23 commit 4b5842f

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

Modules/Core/Common/src/itkObjectFactoryBase.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ class ObjectFactoryBasePrivate : public LightObject
100100
~ObjectFactoryBasePrivate() override
101101
{
102102
itk::ObjectFactoryBase::UnRegisterAllFactories();
103-
for (auto & m_InternalFactorie : m_InternalFactories)
103+
for (auto & internalFactory : m_InternalFactories)
104104
{
105-
m_InternalFactorie->UnRegister();
105+
internalFactory->UnRegister();
106106
}
107107
}
108108

Modules/Core/Mesh/include/itkConnectedRegionsMeshFilter.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,9 @@ ConnectedRegionsMeshFilter<TInputMesh, TOutputMesh>::GenerateData()
388388
if (this->GetDebug())
389389
{
390390
SizeValueType count = 0;
391-
for (const auto & m_RegionSize : m_RegionSizes)
391+
for (const auto & regionSize : m_RegionSizes)
392392
{
393-
count += m_RegionSize;
393+
count += regionSize;
394394
}
395395
itkDebugMacro(<< "Total #of cells accounted for: " << count);
396396
itkDebugMacro(<< "Extracted " << output->GetNumberOfCells() << " cells");

Modules/IO/GDCM/src/itkGDCMSeriesFileNames.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -209,40 +209,40 @@ GDCMSeriesFileNames::GetOutputFileNames()
209209
if (!m_InputFileNames.empty())
210210
{
211211
bool hasExtension = false;
212-
for (const auto & m_InputFileName : m_InputFileNames)
212+
for (const auto & inputFileName : m_InputFileNames)
213213
{
214214
// look for extension ".dcm" and ".DCM"
215-
std::string::size_type dcmPos = m_InputFileName.rfind(".dcm");
216-
if ((dcmPos != std::string::npos) && (dcmPos == m_InputFileName.length() - 4))
215+
std::string::size_type dcmPos = inputFileName.rfind(".dcm");
216+
if ((dcmPos != std::string::npos) && (dcmPos == inputFileName.length() - 4))
217217
{
218218
hasExtension = true;
219219
}
220220
else
221221
{
222-
dcmPos = m_InputFileName.rfind(".DCM");
223-
if ((dcmPos != std::string::npos) && (dcmPos == m_InputFileName.length() - 4))
222+
dcmPos = inputFileName.rfind(".DCM");
223+
if ((dcmPos != std::string::npos) && (dcmPos == inputFileName.length() - 4))
224224
{
225225
hasExtension = true;
226226
}
227227
}
228228

229229
// look for extension ".dicom" and ".DICOM"
230-
std::string::size_type dicomPos = m_InputFileName.rfind(".dicom");
231-
if ((dicomPos != std::string::npos) && (dicomPos == m_InputFileName.length() - 6))
230+
std::string::size_type dicomPos = inputFileName.rfind(".dicom");
231+
if ((dicomPos != std::string::npos) && (dicomPos == inputFileName.length() - 6))
232232
{
233233
hasExtension = true;
234234
}
235235
else
236236
{
237-
dicomPos = m_InputFileName.rfind(".DICOM");
238-
if ((dicomPos != std::string::npos) && (dicomPos == m_InputFileName.length() - 6))
237+
dicomPos = inputFileName.rfind(".DICOM");
238+
if ((dicomPos != std::string::npos) && (dicomPos == inputFileName.length() - 6))
239239
{
240240
hasExtension = true;
241241
}
242242
}
243243

244244
// construct a filename, adding an extension if necessary
245-
std::string filename = m_OutputDirectory + itksys::SystemTools::GetFilenameName(m_InputFileName);
245+
std::string filename = m_OutputDirectory + itksys::SystemTools::GetFilenameName(inputFileName);
246246
if (!hasExtension)
247247
{
248248
// input filename has no extension, add a ".dcm"

0 commit comments

Comments
 (0)