Skip to content
Snippets Groups Projects
Commit 911479a6 authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH : replace itk::OStringStream by std::ostringstream (method removed in ITKV4)

parent 9e2f09a7
No related branches found
No related tags found
No related merge requests found
......@@ -679,13 +679,13 @@ std::string Application::GetParameterAsString(std::string paramKey)
}
else if ( type == ParameterType_Int || type == ParameterType_Radius || type == ParameterType_Choice )
{
itk::OStringStream oss;
std::ostringstream oss;
oss << this->GetParameterInt( paramKey );
ret = oss.str();
}
else if( type == ParameterType_Float )
{
itk::OStringStream oss;
std::ostringstream oss;
oss << this->GetParameterFloat( paramKey );
ret = oss.str();
}
......
......@@ -151,7 +151,7 @@ ListViewParameter::SetSelectedItemsByNames()
// If not found
if( j==names.size() )
{
itk::OStringStream oss;
std::ostringstream oss;
for( j=0; j<names.size(); j++)
{
oss<<names[j];
......@@ -176,7 +176,7 @@ ListViewParameter::SetSelectedItemsByKeys()
{
const std::string selectedKey = m_SelectedKeys[i];
unsigned int j(0);
itk::OStringStream oss;
std::ostringstream oss;
for(; j<keys.size(); j++)
{
if( keys[j] == selectedKey )
......
......@@ -244,7 +244,7 @@ void StereoSensorModelToElevationFilter<TInputImage, TOutputHeight>
// build an exception
itk::InvalidRequestedRegionError e(__FILE__, __LINE__);
itk::OStringStream msg;
std::ostringstream msg;
msg << this->GetNameOfClass()
<< "::GenerateInputRequestedRegion()";
e.SetLocation(msg.str().c_str());
......
......@@ -550,7 +550,7 @@ CommandLineLauncher::DisplayParameterHelp( const Parameter::Pointer & param, con
}
itk::OStringStream oss;
std::ostringstream oss;
oss<<"--"<<paramKey<<" ("<<param->GetName()<<")"<< std::endl;
// Display parameter description
......
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