summaryrefslogtreecommitdiff
path: root/src/ref.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-02 10:28:16 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-02 10:28:16 +0100
commit5591a50b918d2dc784a9e15688dfe24eb2b6dfcc (patch)
tree0cc8e92c88326bd023440956a839f72979322071 /src/ref.h
parent68fa6e44a938d963129db758c25af8e843771a85 (diff)
Add some explicit declarations to constructors.
Diffstat (limited to 'src/ref.h')
-rw-r--r--src/ref.h4
1 files changed, 2 insertions, 2 deletions
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> asset)
+ explicit Ref (boost::shared_ptr<Asset> asset)
: _id (asset->id ())
, _asset (asset)
{}