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

View File

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