diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-02 10:28:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-02 10:28:16 +0100 |
| commit | 5591a50b918d2dc784a9e15688dfe24eb2b6dfcc (patch) | |
| tree | 0cc8e92c88326bd023440956a839f72979322071 /src/ref.h | |
| parent | 68fa6e44a938d963129db758c25af8e843771a85 (diff) | |
Add some explicit declarations to constructors.
Diffstat (limited to 'src/ref.h')
| -rw-r--r-- | src/ref.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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> asset) + explicit Ref (boost::shared_ptr<Asset> asset) : _id (asset->id ()) , _asset (asset) {} |
