mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed issued reported by CppDepends
This commit is contained in:
@@ -74,8 +74,6 @@ void RicAddWellLogToPlotFeature::onActionTriggered(bool isChecked)
|
|||||||
|
|
||||||
plot->loadDataAndUpdate();
|
plot->loadDataAndUpdate();
|
||||||
|
|
||||||
caf::PdmUiItem* uiItem = NULL;
|
|
||||||
|
|
||||||
for (size_t wlIdx = 0; wlIdx < selection.size(); wlIdx++)
|
for (size_t wlIdx = 0; wlIdx < selection.size(); wlIdx++)
|
||||||
{
|
{
|
||||||
RimWellLogFileChannel* wellLog = selection[wlIdx];
|
RimWellLogFileChannel* wellLog = selection[wlIdx];
|
||||||
|
|||||||
@@ -69,7 +69,6 @@ bool RicWellPathViewerEventHandler::handleEvent(cvf::Object* eventObject)
|
|||||||
cvf::Vec3d unscaledIntersection = uiEvent->localIntersectionPoint;
|
cvf::Vec3d unscaledIntersection = uiEvent->localIntersectionPoint;
|
||||||
unscaledIntersection.z() /= activeView->scaleZ;
|
unscaledIntersection.z() /= activeView->scaleZ;
|
||||||
|
|
||||||
size_t wellSegmentIndex = wellPathSourceInfo->segmentIndex(uiEvent->firstPartTriangleIndex);
|
|
||||||
double measuredDepth = wellPathSourceInfo->measuredDepth(uiEvent->firstPartTriangleIndex, unscaledIntersection + displayModelOffset);
|
double measuredDepth = wellPathSourceInfo->measuredDepth(uiEvent->firstPartTriangleIndex, unscaledIntersection + displayModelOffset);
|
||||||
cvf::Vec3d trueVerticalDepth = wellPathSourceInfo->trueVerticalDepth(uiEvent->firstPartTriangleIndex, unscaledIntersection + displayModelOffset);
|
cvf::Vec3d trueVerticalDepth = wellPathSourceInfo->trueVerticalDepth(uiEvent->firstPartTriangleIndex, unscaledIntersection + displayModelOffset);
|
||||||
|
|
||||||
|
|||||||
@@ -86,16 +86,14 @@ void RicWellPathsImportSsihubFeature::onActionTriggered(bool isChecked)
|
|||||||
|
|
||||||
// Get password/username from application cache
|
// Get password/username from application cache
|
||||||
{
|
{
|
||||||
|
#ifdef _DEBUG
|
||||||
|
// Valid credentials for ssihubfake received in mail from H<>kon
|
||||||
|
QString ssihubUsername = "admin";
|
||||||
|
QString ssihubPassword = "resinsight";
|
||||||
|
#else
|
||||||
QString ssihubUsername = app->cacheDataObject("ssihub_username").toString();
|
QString ssihubUsername = app->cacheDataObject("ssihub_username").toString();
|
||||||
QString ssihubPassword = app->cacheDataObject("ssihub_password").toString();
|
QString ssihubPassword = app->cacheDataObject("ssihub_password").toString();
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
|
|
||||||
// Valid credentials for ssihubfake received in mail from H<>kon
|
|
||||||
ssihubUsername = "admin";
|
|
||||||
ssihubPassword = "resinsight";
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wellImportwizard.setCredentials(ssihubUsername, ssihubPassword);
|
wellImportwizard.setCredentials(ssihubUsername, ssihubPassword);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ private:
|
|||||||
float m_opacityLevel;
|
float m_opacityLevel;
|
||||||
cvf::Color3f m_defaultColor;
|
cvf::Color3f m_defaultColor;
|
||||||
|
|
||||||
bool m_showOppositeFaces;
|
|
||||||
bool m_showLabel;
|
bool m_showLabel;
|
||||||
|
|
||||||
cvf::ref<cvf::UByteArray> m_cellVisibility;
|
cvf::ref<cvf::UByteArray> m_cellVisibility;
|
||||||
|
|||||||
@@ -198,9 +198,7 @@ size_t RigCaseCellResultsData::findScalarResultIndex(RimDefines::ResultCatType t
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
size_t RigCaseCellResultsData::findScalarResultIndex(const QString& resultName) const
|
size_t RigCaseCellResultsData::findScalarResultIndex(const QString& resultName) const
|
||||||
{
|
{
|
||||||
size_t scalarResultIndex = cvf::UNDEFINED_SIZE_T;
|
size_t scalarResultIndex = this->findScalarResultIndex(RimDefines::STATIC_NATIVE, resultName);
|
||||||
|
|
||||||
scalarResultIndex = this->findScalarResultIndex(RimDefines::STATIC_NATIVE, resultName);
|
|
||||||
|
|
||||||
if (scalarResultIndex == cvf::UNDEFINED_SIZE_T)
|
if (scalarResultIndex == cvf::UNDEFINED_SIZE_T)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ QWidget(parent, f)
|
|||||||
m_mean = HUGE_VAL;
|
m_mean = HUGE_VAL;
|
||||||
m_min = HUGE_VAL;
|
m_min = HUGE_VAL;
|
||||||
m_max = -HUGE_VAL;
|
m_max = -HUGE_VAL;
|
||||||
|
m_maxHistogramCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user