@@ -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