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" #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();

View File

@ -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;

View File

@ -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: