diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-10-11 12:27:22 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-10-11 12:34:39 +0200 |
| commit | 3fecd33dc2fd14ed487cb14bf9647ee5c0572868 (patch) | |
| tree | 2c87c46c32772a5118c63abf0f43aacbd2d015a8 /src/lib/butler.h | |
| parent | 805d4a48fa6e4d8e28fd582a2ae6ba78b8343144 (diff) | |
Cleanup: use enum class.
Diffstat (limited to 'src/lib/butler.h')
| -rw-r--r-- | src/lib/butler.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/butler.h b/src/lib/butler.h index cd3891754..498af8d86 100644 --- a/src/lib/butler.h +++ b/src/lib/butler.h @@ -59,18 +59,14 @@ public: class Error { public: - enum Code{ + enum class Code { NONE, AGAIN, DIED, FINISHED }; - Error() - : code (NONE) - {} - - Code code; + Code code = Code::NONE; std::string message; std::string summary () const; |
