Add some explicit declarations to constructors.
[libdcp.git] / src / ref.h
index 7c8db95fe43ba10e121500560a1e23c2d8808e54..59e83f748fc13018d89085cfbaf4025c4f8aaa2d 100644 (file)
--- 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)
        {}