Commit ce95f1db authored by Julien Michel's avatar Julien Michel

COV: Fixing medium impact coverity issues in ossimPlugins (wip)

parent 19086d04
......@@ -15,7 +15,14 @@
namespace ossimplugins
{
ErsSarRecordHeader::ErsSarRecordHeader()
ErsSarRecordHeader::ErsSarRecordHeader():
_rec_seq(0),
_rec_sub1(0),
_rec_type(0),
_rec_sub2(0),
_rec_sub3(0),
_length(0)
{
}
......@@ -52,7 +59,8 @@ ErsSarRecordHeader::ErsSarRecordHeader(const ErsSarRecordHeader& rhs):
_rec_sub1(rhs._rec_sub1),
_rec_type(rhs._rec_type),
_rec_sub2(rhs._rec_sub2),
_rec_sub3(rhs._rec_sub3)
_rec_sub3(rhs._rec_sub3),
_length(rhs._length)
{
}
......@@ -63,6 +71,7 @@ ErsSarRecordHeader& ErsSarRecordHeader::operator=(const ErsSarRecordHeader& rhs)
_rec_type = rhs._rec_type;
_rec_sub2 = rhs._rec_sub2;
_rec_sub3 = rhs._rec_sub3;
_length = rhs._length;
return *this;
}
......
......@@ -570,6 +570,8 @@ namespace ossimplugins
std::ostream& ossimGeometricSarSensorModel::print(std::ostream& out) const
{
std::ios::fmtflags f(out.flags());
out << setprecision(15) << setiosflags(ios::fixed)
<< "\nossimGeometricSarSensorModel class data members:\n";
......@@ -606,6 +608,8 @@ std::ostream& ossimGeometricSarSensorModel::print(std::ostream& out) const
out << kwl;
out.flags(f);
return ossimSensorModel::print(out);
}
......
......@@ -52,6 +52,7 @@ ossimRadarSat2RPCModel::ossimRadarSat2RPCModel()
:
ossimRpcModel(),
theDecimation(1.0),
_sensor(NULL),
theProductXmlFile(ossimFilename::NIL)
{
}
......@@ -60,6 +61,7 @@ ossimRadarSat2RPCModel::ossimRadarSat2RPCModel(const ossimRadarSat2RPCModel& rhs
:
ossimRpcModel(rhs),
theDecimation(1.0),
_sensor(NULL),
theProductXmlFile(rhs.theProductXmlFile)
{
......
......@@ -273,6 +273,8 @@ namespace ossimplugins
//*****************************************************************************
void ossimTileMapModel::writeGeomTemplate(ostream& os)
{
std::ios::fmtflags f(os.flags());
if (traceExec()) ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG ossimTileMapModel::writeGeomTemplate: entering..." << std::endl;
os <<
......@@ -283,6 +285,9 @@ namespace ossimplugins
if (traceExec()) ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG ossimTileMapModel::writeGeomTemplate: returning..." << std::endl;
os.flags(f);
return;
}
} // End: namespace ossimplugins
......@@ -114,53 +114,9 @@ public:
protected:
//***
// Image constant parameters:
//***
double theIllumAzimuth;
double theIllumElevation;
double theOrbitAltitude;
double theOrbitInclination;
int theMapZone;
ossimDpt theMapOffset;
int theWrsPathNumber;
int theWrsRowNumber;
double theMeridianalAngle;
double thePositionError;
ProjectionType theProjectionType;
ossimRefPtr<ossimMapProjection> theMapProjection;
double theMapAzimAngle;
double theMapAzimCos;
double theMapAzimSin;
double theMap2IcRotAngle;
double theMap2IcRotCos;
double theMap2IcRotSin;
//
// //***
// // Adjustable parameters:
// //***
double theIntrackOffset;
double theCrtrackOffset;
double theLineGsdCorr;
double theSampGsdCorr;
double theRollOffset;
double theYawOffset;
double theYawRate;
double theMapRotation;
//
// //***
// // Quantities derived from the adjustable parameters:
// //***
NEWMAT::Matrix theRollRotMat;
unsigned int qDepth;
TYPE_DATA
};
} // End: namespace ossimplugins
#endif
......@@ -21,7 +21,10 @@ Equation::Equation():
_coefficients(NULL),
_degree(0),
_nbrSol(0),
_solutions(NULL)
_solutions(NULL),
_normalisationType(Equation::GreatValues),
_normalisationCoefficient(1.),
_trueDegree(0)
{
_order.clear();
}
......@@ -38,7 +41,10 @@ Equation::Equation(int degree, std::complex<double>* coefficients):
_coefficients(NULL),
_degree(0),
_nbrSol(0),
_solutions(NULL)
_solutions(NULL),
_normalisationType(Equation::GreatValues),
_normalisationCoefficient(1.),
_trueDegree(0)
{
_order.clear();
CreateEquation(degree, coefficients);
......@@ -65,7 +71,14 @@ void Equation::CreateEquation(int degree, std::complex<double>* coefficients)
}
}
Equation::Equation(const Equation& rhs)
Equation::Equation(const Equation& rhs):
_coefficients(NULL),
_degree(0),
_nbrSol(0),
_solutions(NULL),
_normalisationType(Equation::GreatValues),
_normalisationCoefficient(1.),
_trueDegree(0)
{
CreateEquation(rhs._degree, rhs._coefficients);
}
......
......@@ -42,6 +42,7 @@ GMSTDateTime::GMSTDateTime(double tms, Ori_TSM_Green origine):
GMSTDateTime::GMSTDateTime(CivilDateTime& rhs)
{
rhs.AsGMSTDateTime(this);
_origine = GMSTDateTime::AN1900;
}
GMSTDateTime& GMSTDateTime::operator=(const GMSTDateTime& rhs)
......
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