Migrated IStreamingReporter from Ptr to std::shared_ptr

This commit is contained in:
Phil Nash
2017-04-25 20:42:01 +01:00
parent a96f25c716
commit 0844d6e867
6 changed files with 23 additions and 23 deletions

View File

@@ -17,8 +17,8 @@ namespace Catch {
class ReporterFactory : public IReporterFactory {
virtual IStreamingReporter* create( ReporterConfig const& config ) const {
return new T( config );
virtual IStreamingReporterPtr create( ReporterConfig const& config ) const {
return std::make_shared<T>( config );
}
virtual std::string getDescription() const {
@@ -38,8 +38,8 @@ namespace Catch {
class ListenerFactory : public IReporterFactory {
virtual IStreamingReporter* create( ReporterConfig const& config ) const {
return new T( config );
virtual IStreamingReporterPtr create( ReporterConfig const& config ) const {
return std::make_shared<T>( config );
}
virtual std::string getDescription() const {
return std::string();