projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
aa52656
)
- fixed Target ctor to be 'explicit'. The compiler should not be
author
Michael Andres
<ma@suse.de>
Tue, 31 Jan 2006 08:44:58 +0000
(08:44 +0000)
committer
Michael 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
patch
|
blob
|
history
zypp/Target.h
patch
|
blob
|
history
diff --git
a/zypp/Target.cc
b/zypp/Target.cc
index
3402bfd
..
1192d6d
100644
(file)
--- a/
zypp/Target.cc
+++ b/
zypp/Target.cc
@@
-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));
}
///////////////////////////////////////////////////////////////////
diff --git
a/zypp/Target.h
b/zypp/Target.h
index
c0c65e9
..
288c24e
100644
(file)
--- a/
zypp/Target.h
+++ b/
zypp/Target.h
@@
-58,6
+58,7
@@
namespace zypp
public:
/** Ctor */
+ explicit
Target( const Pathname & root = "/" );
/** Ctor */
explicit