Skip to content
Snippets Groups Projects
Commit a5e09cfd authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH: invert bool return philosophy (true if OK)

parent 296e2135
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ InputImageListParameter::SetListFromFileName(const std::vector<std::string> & fi
{
reader->UpdateOutputInformation();
}
catch(itk::ExceptionObject & err)
catch(itk::ExceptionObject & /*err*/)
{
this->ClearValue();
isOk = false;
......
......@@ -56,7 +56,7 @@ InputImageParameter::SetFromFileName(const std::string& filename)
{
reader->UpdateOutputInformation();
}
catch(itk::ExceptionObject & err)
catch(itk::ExceptionObject & /*err*/)
{
return false;
}
......
......@@ -106,7 +106,7 @@ InputVectorDataListParameter::AddFromFileName(const std::string & filename)
{
reader->UpdateOutputInformation();
}
catch(itk::ExceptionObject & err)
catch(itk::ExceptionObject & /*err*/)
{
return false;
}
......
......@@ -51,7 +51,7 @@ InputVectorDataParameter::SetFromFileName(const std::string& filename)
{
reader->UpdateOutputInformation();
}
catch(itk::ExceptionObject & err)
catch(itk::ExceptionObject & /*err*/)
{
return false;
}
......
......@@ -85,7 +85,7 @@ bool QtWidgetInputImageParameter::SetFileName(const QString& value)
{
bool res = true;
// save value
if(m_InputImageParam->SetFromFileName(value.toStdString()) == false )
if(m_InputImageParam->SetFromFileName(value.toStdString()) == true )
{
// notify of value change
QString key( QString::fromStdString(m_InputImageParam->GetKey()) );
......
......@@ -85,7 +85,7 @@ bool QtWidgetInputVectorDataParameter::SetFileName(const QString& value)
{
bool res = true;
// save value
if(m_InputVectorDataParam->SetFromFileName(value.toStdString()) == false )
if(m_InputVectorDataParam->SetFromFileName(value.toStdString()) == true )
{
// notify of value change
QString key( QString::fromStdString(m_InputVectorDataParam->GetKey()) );
......
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