From 483f322f892b2528b34450ab9435859b7f8b8928 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Thu, 21 Dec 2017 13:53:32 +0000 Subject: [PATCH] Changed static const to enum. --- src/multimap.h | 9 ++++++--- src/multiset.h | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/multimap.h b/src/multimap.h index 016a4513..1d2e7682 100644 --- a/src/multimap.h +++ b/src/multimap.h @@ -178,9 +178,12 @@ namespace etl protected: - static const uint_least8_t kLeft = 0; - static const uint_least8_t kRight = 1; - static const uint_least8_t kNeither = 2; + enum + { + kLeft, + kRight, + kNeither + }; //************************************************************************* /// The node element in the multimap. diff --git a/src/multiset.h b/src/multiset.h index e01e1d59..d2911291 100644 --- a/src/multiset.h +++ b/src/multiset.h @@ -178,9 +178,12 @@ namespace etl protected: - static const uint_least8_t kLeft = 0; - static const uint_least8_t kRight = 1; - static const uint_least8_t kNeither = 2; + enum + { + kLeft, + kRight, + kNeither + }; //************************************************************************* /// The node element in the multiset.