Commit acb6d314 authored by Julien Michel's avatar Julien Michel

COV: Fixing coverities issues in ossimPlugins (Not restoring ostream format)

parent 311382ea
......@@ -134,6 +134,8 @@ bool IncidenceAngles::loadState(const ossimKeywordlist& kwl, const char* prefix)
std::ostream& IncidenceAngles::print(std::ostream& out) const
{
std::ios::fmtflags f(out.flags());
out << setprecision(15) << setiosflags(ios::fixed)
<< "\n IncidentAngles class data members:\n";
......@@ -155,6 +157,8 @@ std::ostream& IncidenceAngles::print(std::ostream& out) const
}
out << kwl;
out.flags(f);
return out;
}
......
......@@ -135,6 +135,8 @@ bool Noise::loadState(const ossimKeywordlist& kwl, const char* prefix)
std::ostream& Noise::print(std::ostream& out) const
{
std::ios::fmtflags f(out.flags());
out << setprecision(15) << setiosflags(ios::fixed)
<< "\n Noise class data members:\n";
......@@ -154,6 +156,8 @@ std::ostream& Noise::print(std::ostream& out) const
out << kwl;
out.flags(f);
return out;
}
......
......@@ -299,6 +299,8 @@ bool RadarSat2NoiseLevel::loadState(const ossimKeywordlist& kwl, const char* pre
std::ostream& RadarSat2NoiseLevel::print(std::ostream& out) const
{
std::ios::fmtflags f(out.flags());
out << setprecision(15) << setiosflags(ios::fixed)
<< "\n RadarSat2NoiseLevel class data members:\n";
......@@ -310,6 +312,8 @@ std::ostream& RadarSat2NoiseLevel::print(std::ostream& out) const
//out << kwl;
out.flags(f);
return out;
}
......
......@@ -138,6 +138,8 @@ bool SceneCoord::loadState(const ossimKeywordlist& kwl, const char* prefix)
std::ostream& SceneCoord::print(std::ostream& out) const
{
std::ios::fmtflags f(out.flags());
out << setprecision(15) << setiosflags(ios::fixed)
<< "\n SceneCoord class data members:\n";
......@@ -159,6 +161,8 @@ std::ostream& SceneCoord::print(std::ostream& out) const
}
out << kwl;
out.flags(f);
return out;
}
......
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