dont return temp objects
[platform/upstream/libzypp.git] / zypp / ResObject.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/ResObject.cc
10  *
11 */
12 #include "zypp/ResObject.h"
13 #include "zypp/source/SourceImpl.h"
14 #include "zypp/detail/ResObjectImplIf.h"
15
16 using namespace std;
17
18 ///////////////////////////////////////////////////////////////////
19 namespace zypp
20 { /////////////////////////////////////////////////////////////////
21
22   ///////////////////////////////////////////////////////////////////
23   //
24   //    METHOD NAME : ResObject::ResObject
25   //    METHOD TYPE : Ctor
26   //
27   ResObject::ResObject( const Kind & kind_r,
28                         const NVRAD & nvrad_r )
29   : Resolvable( kind_r, nvrad_r )
30   {}
31
32   ///////////////////////////////////////////////////////////////////
33   //
34   //    METHOD NAME : ResObject::~ResObject
35   //    METHOD TYPE : Dtor
36   //
37   ResObject::~ResObject()
38   {}
39
40   ///////////////////////////////////////////////////////////////////
41   //
42   //    ResObject interface forwarded to implementation
43   //
44   ///////////////////////////////////////////////////////////////////
45
46   Text ResObject::summary() const
47   { return pimpl().summary().text(); }
48
49   Text ResObject::description() const
50   { return pimpl().description().text(); }
51
52   Text ResObject::insnotify() const
53   { return pimpl().insnotify(); }
54
55   Text ResObject::delnotify() const
56   { return pimpl().delnotify(); }
57
58   ByteCount ResObject::size() const
59   { return pimpl().size(); }
60
61   Source_Ref ResObject::source() const
62   { return pimpl().source(); }
63
64   /////////////////////////////////////////////////////////////////
65 } // namespace zypp
66 ///////////////////////////////////////////////////////////////////