From 5591a50b918d2dc784a9e15688dfe24eb2b6dfcc Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 2 Jun 2016 10:28:16 +0100 Subject: Add some explicit declarations to constructors. --- src/ref.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ref.h') diff --git a/src/ref.h b/src/ref.h index 7c8db95f..59e83f74 100644 --- a/src/ref.h +++ b/src/ref.h @@ -47,12 +47,12 @@ class Ref { public: /** Initialise a Ref with an ID but no shared_ptr */ - Ref (std::string id) + explicit Ref (std::string id) : _id (id) {} /** Initialise a Ref with a shared_ptr to an asset */ - Ref (boost::shared_ptr asset) + explicit Ref (boost::shared_ptr asset) : _id (asset->id ()) , _asset (asset) {} -- cgit v1.2.3