From f5db37fcf7fe94f175e81187aecd90f1af92cb51 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Wed, 15 Feb 2017 10:38:42 +0100 Subject: [PATCH] Use int as category value type --- ApplicationCode/ProjectDataModel/RimLegendConfig.cpp | 2 +- ApplicationCode/ProjectDataModel/RimLegendConfig.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimLegendConfig.cpp b/ApplicationCode/ProjectDataModel/RimLegendConfig.cpp index 903688845d..477b22e887 100644 --- a/ApplicationCode/ProjectDataModel/RimLegendConfig.cpp +++ b/ApplicationCode/ProjectDataModel/RimLegendConfig.cpp @@ -639,7 +639,7 @@ void RimLegendConfig::setCategoryColors(const std::vector& catego //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- -QString RimLegendConfig::categoryNameFromCategoryValue(size_t categoryValue) const +QString RimLegendConfig::categoryNameFromCategoryValue(int categoryValue) const { if (m_categoryNames.size() > 0) { diff --git a/ApplicationCode/ProjectDataModel/RimLegendConfig.h b/ApplicationCode/ProjectDataModel/RimLegendConfig.h index 76544dedf0..013d3b7b8e 100644 --- a/ApplicationCode/ProjectDataModel/RimLegendConfig.h +++ b/ApplicationCode/ProjectDataModel/RimLegendConfig.h @@ -110,7 +110,7 @@ public: void setNamedCategoriesInverse(const std::vector& categoryNames); void setNamedCategories(const std::vector& categoryNames); void setCategoryColors(const std::vector& categoryColors); - QString categoryNameFromCategoryValue(size_t categoryValue) const; + QString categoryNameFromCategoryValue(int categoryValue) const; void setTitle(const cvf::String& title);