void Spacing::set(Spacing::Space sp, string const & val)
{
float fval = 0.0;
- istringstream istr(val.c_str());
+ istringstream istr(val);
istr >> fval;
set(sp, fval);
}
os.setf(ios::showpoint|ios::fixed);
os.precision(2);
os << cmd << spacing_string[getSpace()]
- << ' ' << getValue() << " \n";
+ << ' ' << getValue() << "\n";
} else {
- os << cmd << spacing_string[getSpace()] << " \n";
+ os << cmd << spacing_string[getSpace()] << "\n";
}
}