Skip to content
Snippets Groups Projects
Commit c961654c authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

ENH: use const string to store filename extension

parent 57ad476c
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ StatisticsXMLFileWriter<TMeasurementVector> ...@@ -72,7 +72,7 @@ StatisticsXMLFileWriter<TMeasurementVector>
itkExceptionMacro(<<"The XML output FileName is empty, please set the filename via the method SetFileName"); itkExceptionMacro(<<"The XML output FileName is empty, please set the filename via the method SetFileName");
// Check that the right extension is given : expected .xml */ // Check that the right extension is given : expected .xml */
std::string extension = itksys::SystemTools::GetFilenameLastExtension(m_FileName); const std::string extension = itksys::SystemTools::GetFilenameLastExtension(m_FileName);
if (itksys::SystemTools::LowerCase(extension) != ".xml") if (itksys::SystemTools::LowerCase(extension) != ".xml")
{ {
itkExceptionMacro(<<extension itkExceptionMacro(<<extension
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment