mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
CppCheck : Fix various minor issues
This commit is contained in:
parent
e514a77a80
commit
a9c7773ef7
@ -38,7 +38,12 @@
|
|||||||
class AsciiDataParseOptions
|
class AsciiDataParseOptions
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AsciiDataParseOptions() : useCustomDateTimeFormat(false), assumeNumericDataColumns(false) { }
|
AsciiDataParseOptions()
|
||||||
|
: useCustomDateTimeFormat(false)
|
||||||
|
, assumeNumericDataColumns(false)
|
||||||
|
, curveSymbolSkipDistance(0.0f)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
QString plotTitle;
|
QString plotTitle;
|
||||||
QString curvePrefix;
|
QString curvePrefix;
|
||||||
|
@ -684,15 +684,15 @@ void RimWellRftPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
|
|||||||
setDescription(QString(plotNameFormatString()).arg(m_wellPathNameOrSimWellName));
|
setDescription(QString(plotNameFormatString()).arg(m_wellPathNameOrSimWellName));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (changedField == &m_wellPathNameOrSimWellName)
|
|
||||||
{
|
|
||||||
if (changedField == &m_wellPathNameOrSimWellName)
|
if (changedField == &m_wellPathNameOrSimWellName)
|
||||||
{
|
{
|
||||||
m_branchIndex = 0;
|
m_branchIndex = 0;
|
||||||
}
|
|
||||||
|
|
||||||
RimWellLogTrack* const plotTrack = m_wellLogPlot->trackByIndex(0);
|
RimWellLogTrack* const plotTrack = m_wellLogPlot->trackByIndex(0);
|
||||||
|
if (plotTrack)
|
||||||
|
{
|
||||||
plotTrack->deleteAllCurves();
|
plotTrack->deleteAllCurves();
|
||||||
|
}
|
||||||
|
|
||||||
updateEditorsFromCurves();
|
updateEditorsFromCurves();
|
||||||
updateFormationsOnPlot();
|
updateFormationsOnPlot();
|
||||||
|
@ -41,7 +41,11 @@ class RiuCalculationsContextMenuManager : public QObject
|
|||||||
static const std::map<QString, std::set<QString>> MENU_MAP;
|
static const std::map<QString, std::set<QString>> MENU_MAP;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RiuCalculationsContextMenuManager() { }
|
RiuCalculationsContextMenuManager()
|
||||||
|
: m_curveCalc(nullptr)
|
||||||
|
, m_textPosition(0)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void attachWidget(QWidget* widget, RicSummaryCurveCalculator* curveCalc);
|
void attachWidget(QWidget* widget, RicSummaryCurveCalculator* curveCalc);
|
||||||
|
|
||||||
|
@ -39,7 +39,10 @@ class RiuExpressionContextMenuManager : public QObject
|
|||||||
static const std::map<QString, std::set<QString>> MENU_MAP;
|
static const std::map<QString, std::set<QString>> MENU_MAP;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RiuExpressionContextMenuManager() { }
|
RiuExpressionContextMenuManager()
|
||||||
|
: m_textPosition(0)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void attachTextEdit(QTextEdit* textEdit);
|
void attachTextEdit(QTextEdit* textEdit);
|
||||||
|
|
||||||
|
@ -177,12 +177,7 @@ void RiuViewerCommands::displayContextMenu(QMouseEvent* event)
|
|||||||
|
|
||||||
if (pickItemInfos.size())
|
if (pickItemInfos.size())
|
||||||
{
|
{
|
||||||
cvf::Vec3d globalIntersectionPoint(cvf::Vec3d::ZERO);
|
cvf::Vec3d globalIntersectionPoint = pickItemInfos[0].globalPickedPoint();
|
||||||
|
|
||||||
if ( pickItemInfos.size() )
|
|
||||||
{
|
|
||||||
globalIntersectionPoint = pickItemInfos[0].globalPickedPoint();
|
|
||||||
}
|
|
||||||
|
|
||||||
for (const auto& pickItem : pickItemInfos)
|
for (const auto& pickItem : pickItemInfos)
|
||||||
{
|
{
|
||||||
|
@ -50,6 +50,7 @@ RiuWellPathComponentPlotItem::RiuWellPathComponentPlotItem(const RimWellPath* we
|
|||||||
, m_componentType(RiaDefines::WELL_PATH)
|
, m_componentType(RiaDefines::WELL_PATH)
|
||||||
, m_columnOffset(0.0)
|
, m_columnOffset(0.0)
|
||||||
, m_depthType(RimWellLogPlot::MEASURED_DEPTH)
|
, m_depthType(RimWellLogPlot::MEASURED_DEPTH)
|
||||||
|
, m_maxColumnOffset(0.0)
|
||||||
, m_showLabel(false)
|
, m_showLabel(false)
|
||||||
{
|
{
|
||||||
CVF_ASSERT(wellPath);
|
CVF_ASSERT(wellPath);
|
||||||
@ -68,6 +69,7 @@ RiuWellPathComponentPlotItem::RiuWellPathComponentPlotItem(const RimWellPath* we
|
|||||||
: m_wellPath(wellPath)
|
: m_wellPath(wellPath)
|
||||||
, m_columnOffset(0.0)
|
, m_columnOffset(0.0)
|
||||||
, m_depthType(RimWellLogPlot::MEASURED_DEPTH)
|
, m_depthType(RimWellLogPlot::MEASURED_DEPTH)
|
||||||
|
, m_maxColumnOffset(0.0)
|
||||||
, m_showLabel(false)
|
, m_showLabel(false)
|
||||||
{
|
{
|
||||||
CVF_ASSERT(wellPath && component);
|
CVF_ASSERT(wellPath && component);
|
||||||
|
Loading…
Reference in New Issue
Block a user