Imported Upstream version 14.45.0
[platform/upstream/libzypp.git] / zypp / Target.cc
index 2bee5ea..26a22f8 100644 (file)
@@ -45,6 +45,18 @@ namespace zypp
     assert( impl_r );
   }
 
+  Target_Ptr Target::_nullimpl;
+
+  /** Null implementation */
+  Target_Ptr Target::nullimpl()
+  {
+    if (! _nullimpl)
+    {
+      _nullimpl = new Target(target::TargetImpl::nullimpl());
+    }
+    return _nullimpl;
+  }
+
   std::ostream & operator<<( std::ostream & str, const Target::DistributionLabel & obj )
   {
     str << "summary=" << obj.summary << endl;