Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/interfaces
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-08-11 15:50:51 +0200
committerMartin Hořeňovský2020-08-11 17:47:54 +0200
commitaa28a917cbf2fe77b1c611b606dc8b1f39581142 (patch)
tree814a6c1a50078b805df2df6d1c691ab7b774d820 /src/catch2/interfaces
parentb0531404e4cdd31d63bebbc21d9a4556922a0626 (diff)
downloadcatch3-aa28a917cbf2fe77b1c611b606dc8b1f39581142.tar.gz
Turn UseColour into enum class
Diffstat (limited to 'src/catch2/interfaces')
-rw-r--r--src/catch2/interfaces/catch_interfaces_config.hpp6
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;