CppCheck : Remove unused constructor and init all members in constructor

This commit is contained in:
Magne Sjaastad 2017-09-07 21:06:45 +02:00
parent 03df2c2540
commit d8beee3eb1
2 changed files with 4 additions and 20 deletions

View File

@ -17,16 +17,11 @@
/////////////////////////////////////////////////////////////////////////////////
#include "RigFractureCell.h"
#include "RiaLogging.h"
#include <QString>
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RigFractureCell::RigFractureCell()
{
}
//--------------------------------------------------------------------------------------------------
///
@ -36,14 +31,7 @@ RigFractureCell::RigFractureCell(std::vector<cvf::Vec3d> polygon, size_t i, size
m_polygon = polygon;
m_i = i;
m_j = j;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RigFractureCell::~RigFractureCell()
{
m_concutivityValue = 0.0;
}
//--------------------------------------------------------------------------------------------------

View File

@ -31,12 +31,8 @@ class RigFractureCell
{
public:
RigFractureCell();
RigFractureCell(std::vector<cvf::Vec3d> polygon, size_t i, size_t j);
virtual ~RigFractureCell();
const std::vector<cvf::Vec3d>& getPolygon() const { return m_polygon; }
double getConductivtyValue() const { return m_concutivityValue; }
size_t getI() const { return m_i; }
@ -47,11 +43,11 @@ public:
double cellSizeX() const;
double cellSizeZ() const;
private:
std::vector<cvf::Vec3d> m_polygon;
double m_concutivityValue;
size_t m_i;
size_t m_j;
};