diff options
| author | Martin Hořeňovský | 2020-08-11 15:50:51 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-08-11 17:47:54 +0200 |
| commit | aa28a917cbf2fe77b1c611b606dc8b1f39581142 (patch) | |
| tree | 814a6c1a50078b805df2df6d1c691ab7b774d820 /src/catch2/interfaces | |
| parent | b0531404e4cdd31d63bebbc21d9a4556922a0626 (diff) | |
| download | catch3-aa28a917cbf2fe77b1c611b606dc8b1f39581142.tar.gz | |
Turn UseColour into enum class
Diffstat (limited to 'src/catch2/interfaces')
| -rw-r--r-- | src/catch2/interfaces/catch_interfaces_config.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_config.hpp b/src/catch2/interfaces/catch_interfaces_config.hpp index 2ebfd411..a2cb88a8 100644 --- a/src/catch2/interfaces/catch_interfaces_config.hpp +++ b/src/catch2/interfaces/catch_interfaces_config.hpp @@ -39,11 +39,11 @@ namespace Catch { LexicographicallySorted, Randomized }; - struct UseColour { enum YesOrNo { + enum class UseColour { Auto, Yes, No - }; }; + }; struct WaitForKeypress { enum When { Never, BeforeStart = 1, @@ -73,7 +73,7 @@ namespace Catch { virtual std::vector<std::string> const& getTestsOrTags() const = 0; virtual TestRunOrder runOrder() const = 0; virtual unsigned int rngSeed() const = 0; - virtual UseColour::YesOrNo useColour() const = 0; + virtual UseColour useColour() const = 0; virtual std::vector<std::string> const& getSectionsToRun() const = 0; virtual Verbosity verbosity() const = 0; |