mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 19:53:28 +01:00
Change typedefs to using
This commit is contained in:
parent
33fd54a673
commit
307eeefa8f
@ -14,11 +14,10 @@
|
|||||||
#include "catch_interfaces_registry_hub.h"
|
#include "catch_interfaces_registry_hub.h"
|
||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
using exceptionTranslateFunction = std::string(*)();
|
||||||
typedef std::string(*exceptionTranslateFunction)();
|
|
||||||
|
|
||||||
struct IExceptionTranslator;
|
struct IExceptionTranslator;
|
||||||
typedef std::vector<std::unique_ptr<IExceptionTranslator const>> ExceptionTranslators;
|
using ExceptionTranslators = std::vector<std::unique_ptr<IExceptionTranslator const>>;
|
||||||
|
|
||||||
struct IExceptionTranslator {
|
struct IExceptionTranslator {
|
||||||
virtual ~IExceptionTranslator();
|
virtual ~IExceptionTranslator();
|
||||||
|
@ -104,7 +104,7 @@ namespace TestCaseTracking {
|
|||||||
bool operator ()( ITrackerPtr const& tracker ) const;
|
bool operator ()( ITrackerPtr const& tracker ) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::vector<ITrackerPtr> Children;
|
using Children = std::vector<ITrackerPtr>;
|
||||||
NameAndLocation m_nameAndLocation;
|
NameAndLocation m_nameAndLocation;
|
||||||
TrackerContext& m_ctx;
|
TrackerContext& m_ctx;
|
||||||
ITracker* m_parent;
|
ITracker* m_parent;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
|
||||||
class MultipleReporters : public IStreamingReporter {
|
class MultipleReporters : public IStreamingReporter {
|
||||||
typedef std::vector<IStreamingReporterPtr> Reporters;
|
using Reporters = std::vector<IStreamingReporterPtr>;
|
||||||
Reporters m_reporters;
|
Reporters m_reporters;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user