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:
parent
5eb38fe203
commit
b4e7e27f76
@ -74,8 +74,6 @@ void RicAddWellLogToPlotFeature::onActionTriggered(bool isChecked)
|
||||
|
||||
plot->loadDataAndUpdate();
|
||||
|
||||
caf::PdmUiItem* uiItem = NULL;
|
||||
|
||||
for (size_t wlIdx = 0; wlIdx < selection.size(); wlIdx++)
|
||||
{
|
||||
RimWellLogFileChannel* wellLog = selection[wlIdx];
|
||||
|
@ -69,7 +69,6 @@ bool RicWellPathViewerEventHandler::handleEvent(cvf::Object* eventObject)
|
||||
cvf::Vec3d unscaledIntersection = uiEvent->localIntersectionPoint;
|
||||
unscaledIntersection.z() /= activeView->scaleZ;
|
||||
|
||||
size_t wellSegmentIndex = wellPathSourceInfo->segmentIndex(uiEvent->firstPartTriangleIndex);
|
||||
double measuredDepth = wellPathSourceInfo->measuredDepth(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
|
||||
{
|
||||
#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 ssihubPassword = app->cacheDataObject("ssihub_password").toString();
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
// Valid credentials for ssihubfake received in mail from Håkon
|
||||
ssihubUsername = "admin";
|
||||
ssihubPassword = "resinsight";
|
||||
#endif
|
||||
|
||||
wellImportwizard.setCredentials(ssihubUsername, ssihubPassword);
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,6 @@ private:
|
||||
float m_opacityLevel;
|
||||
cvf::Color3f m_defaultColor;
|
||||
|
||||
bool m_showOppositeFaces;
|
||||
bool m_showLabel;
|
||||
|
||||
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 scalarResultIndex = cvf::UNDEFINED_SIZE_T;
|
||||
|
||||
scalarResultIndex = this->findScalarResultIndex(RimDefines::STATIC_NATIVE, resultName);
|
||||
size_t scalarResultIndex = this->findScalarResultIndex(RimDefines::STATIC_NATIVE, resultName);
|
||||
|
||||
if (scalarResultIndex == cvf::UNDEFINED_SIZE_T)
|
||||
{
|
||||
|
@ -13,6 +13,7 @@ QWidget(parent, f)
|
||||
m_mean = HUGE_VAL;
|
||||
m_min = HUGE_VAL;
|
||||
m_max = -HUGE_VAL;
|
||||
m_maxHistogramCount = 0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user