Commit c961654c authored by Manuel Grizonnet's avatar Manuel Grizonnet

ENH: use const string to store filename extension

parent 57ad476c
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment