firmware_handler: use enum class type for UpdateState
The UpdateState isn't a number as much as a state, therefore there are
no negative side-effects to using an enum class. The enum itself was
already declared inside the class, therefore limiting its scope, but
this further limits it.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I9248d12c4d3d1c218f110b3457806822da3ba6e8
diff --git a/firmware_handler.hpp b/firmware_handler.hpp
index fe410a1..8d41ba6 100644
--- a/firmware_handler.hpp
+++ b/firmware_handler.hpp
@@ -96,7 +96,7 @@
* appropriately.
*/
/** The state of the firmware update process. */
- enum UpdateState
+ enum class UpdateState
{
/** The initial state. */
notYetStarted = 0,