Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
29
cde/programs/nsgmls/Owner.C
Normal file
29
cde/programs/nsgmls/Owner.C
Normal file
@@ -0,0 +1,29 @@
|
||||
/* $XConsortium: Owner.C /main/1 1996/07/29 16:59:54 cde-hp $ */
|
||||
// Copyright (c) 1994 James Clark
|
||||
// See the file COPYING for copying permission.
|
||||
|
||||
#ifndef Owner_DEF_INCLUDED
|
||||
#define Owner_DEF_INCLUDED 1
|
||||
|
||||
#ifdef SP_NAMESPACE
|
||||
namespace SP_NAMESPACE {
|
||||
#endif
|
||||
|
||||
template<class T>
|
||||
Owner<T>::~Owner()
|
||||
{
|
||||
if (p_)
|
||||
delete p_;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
void Owner<T>::del()
|
||||
{
|
||||
delete p_;
|
||||
}
|
||||
|
||||
#ifdef SP_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* not Owner_DEF_INCLUDED */
|
||||
Reference in New Issue
Block a user