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:03:37 +0200
committerMartin Hořeňovský2020-08-11 15:03:37 +0200
commit60cc4c293d4d7d984a0f01397270ce592a397de5 (patch)
tree5885bc5be2481ae3d9175d14707e25c29a076a1d /src/catch2/interfaces
parent6dc834526103e3b9ee7fab26a69cd7942924bd91 (diff)
downloadcatch3-60cc4c293d4d7d984a0f01397270ce592a397de5.tar.gz
Turn ShowDurations into an 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 8f3926f5..39cc2bf7 100644
--- a/src/catch2/interfaces/catch_interfaces_config.hpp
+++ b/src/catch2/interfaces/catch_interfaces_config.hpp
@@ -29,11 +29,11 @@ namespace Catch {
NoTests = 0x02
}; };
- struct ShowDurations { enum OrNot {
+ enum class ShowDurations {
DefaultForReporter,
Always,
Never
- }; };
+ };
struct RunTests { enum InWhatOrder {
InDeclarationOrder,
InLexicographicalOrder,
@@ -66,7 +66,7 @@ namespace Catch {
virtual bool warnAboutNoTests() const = 0;
virtual int abortAfter() const = 0;
virtual bool showInvisibles() const = 0;
- virtual ShowDurations::OrNot showDurations() const = 0;
+ virtual ShowDurations showDurations() const = 0;
virtual double minDuration() const = 0;
virtual TestSpec const& testSpec() const = 0;
virtual bool hasTestFilters() const = 0;