Change typedefs to using

This commit is contained in:
Martin Hořeňovský 2017-07-27 12:24:21 +02:00
parent 33fd54a673
commit 307eeefa8f
3 changed files with 4 additions and 5 deletions

View File

@ -14,11 +14,10 @@
#include "catch_interfaces_registry_hub.h"
namespace Catch {
typedef std::string(*exceptionTranslateFunction)();
using exceptionTranslateFunction = std::string(*)();
struct IExceptionTranslator;
typedef std::vector<std::unique_ptr<IExceptionTranslator const>> ExceptionTranslators;
using ExceptionTranslators = std::vector<std::unique_ptr<IExceptionTranslator const>>;
struct IExceptionTranslator {
virtual ~IExceptionTranslator();

View File

@ -104,7 +104,7 @@ namespace TestCaseTracking {
bool operator ()( ITrackerPtr const& tracker ) const;
};
typedef std::vector<ITrackerPtr> Children;
using Children = std::vector<ITrackerPtr>;
NameAndLocation m_nameAndLocation;
TrackerContext& m_ctx;
ITracker* m_parent;

View File

@ -10,7 +10,7 @@
namespace Catch {
class MultipleReporters : public IStreamingReporter {
typedef std::vector<IStreamingReporterPtr> Reporters;
using Reporters = std::vector<IStreamingReporterPtr>;
Reporters m_reporters;
public: