lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] valyuta/004 5ceb54d 01/17: Move an enum


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/004 5ceb54d 01/17: Move an enum
Date: Thu, 24 Dec 2020 10:23:49 -0500 (EST)

branch: valyuta/004
commit 5ceb54df63a27ddc7ceeb9ec11832015509462e6
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Move an enum
    
    Moved an enum into the only TU that uses it, to improve encapsulation.
---
 ihs_server7702.cpp | 11 +++++++++++
 ihs_server7702.hpp | 11 -----------
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/ihs_server7702.cpp b/ihs_server7702.cpp
index a8d9346..ebfd64b 100644
--- a/ihs_server7702.cpp
+++ b/ihs_server7702.cpp
@@ -36,6 +36,17 @@
 
 #include <exception>
 
+enum
+    {unknown_error                          = 0x0001
+    ,precision_changed                      = 0x0002
+    ,implausible_input                      = 0x0004
+    ,inconsistent_input                     = 0x0008
+    ,product_rule_violated                  = 0x0010
+    ,adjustable_event_forbidden_at_issue    = 0x0020
+    ,guideline_negative                     = 0x0040
+    ,misstatement_of_age_or_gender          = 0x0080
+    };
+
 //============================================================================
 void EnterServer()
 {
diff --git a/ihs_server7702.hpp b/ihs_server7702.hpp
index 029ed96..2779304 100644
--- a/ihs_server7702.hpp
+++ b/ihs_server7702.hpp
@@ -87,17 +87,6 @@ class Server7702
     bool IsPossibleAdjustableEvent;
 };
 
-enum
-    {unknown_error                          = 0x0001
-    ,precision_changed                      = 0x0002
-    ,implausible_input                      = 0x0004
-    ,inconsistent_input                     = 0x0008
-    ,product_rule_violated                  = 0x0010
-    ,adjustable_event_forbidden_at_issue    = 0x0020
-    ,guideline_negative                     = 0x0040
-    ,misstatement_of_age_or_gender          = 0x0080
-    };
-
 // We have no specific exception class for unknown_error
 // precisely because it's unknown. We return it when we
 // catch class exception after trying all the more



reply via email to

[Prev in Thread] Current Thread [Next in Thread]