- fixed Target ctor to be 'explicit'. The compiler should not be
authorMichael Andres <ma@suse.de>
Tue, 31 Jan 2006 08:44:58 +0000 (08:44 +0000)
committerMichael Andres <ma@suse.de>
Tue, 31 Jan 2006 08:44:58 +0000 (08:44 +0000)
  allowed to implicitly convert some type into a Target.

zypp/Target.cc
zypp/Target.h

index 3402bfd..1192d6d 100644 (file)
@@ -30,8 +30,8 @@ namespace zypp
   //   METHOD TYPE : Ctor
   //
   Target::Target( const Pathname & root )
+  : _pimpl( new Impl(root) )
   {
-    _pimpl = RW_pointer<Impl, rw_pointer::Intrusive<Impl> >(new Impl(root));
   }
 
   ///////////////////////////////////////////////////////////////////
index c0c65e9..288c24e 100644 (file)
@@ -58,6 +58,7 @@ namespace zypp
 
   public:
     /** Ctor */
+    explicit
     Target( const Pathname & root = "/" );
     /** Ctor */
     explicit