From 4ee63784e81143f08154cae861ea9b4aa8eedbaa Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Wed, 7 Jun 2017 10:13:00 +0200 Subject: [PATCH] Fix type warning on Windows --- ApplicationCode/ProjectDataModel/RimEclipseCellColors.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimEclipseCellColors.cpp b/ApplicationCode/ProjectDataModel/RimEclipseCellColors.cpp index 973e1e9165..4234e8f60b 100644 --- a/ApplicationCode/ProjectDataModel/RimEclipseCellColors.cpp +++ b/ApplicationCode/ProjectDataModel/RimEclipseCellColors.cpp @@ -390,9 +390,9 @@ void RimEclipseCellColors::updateLegendData(size_t currentTimeStep) caf::AppEnum fishbone(RimDefines::FISHBONES); caf::AppEnum perforationInterval(RimDefines::PERFORATION_INTERVAL); - categories.push_back(std::make_tuple(wellPath.uiText(), wellPath.index(), cvf::Color3::RED)); - categories.push_back(std::make_tuple(fishbone.uiText(), fishbone.index(), cvf::Color3::DARK_GREEN)); - categories.push_back(std::make_tuple(perforationInterval.uiText(), perforationInterval.index(), cvf::Color3::GREEN)); + categories.push_back(std::make_tuple(wellPath.uiText(), static_cast(wellPath.index()), cvf::Color3::RED)); + categories.push_back(std::make_tuple(fishbone.uiText(), static_cast(fishbone.index()), cvf::Color3::DARK_GREEN)); + categories.push_back(std::make_tuple(perforationInterval.uiText(), static_cast(perforationInterval.index()), cvf::Color3::GREEN)); legendConfig()->setCategoryItems(categories); }