X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmRefCounter.h;h=25ecce970a16e4be7459acea78ed082eb4c54042;hb=a4cc79200b40be00c490fa4a9116dca626e1c5cf;hp=cafb784997905b96918f948b6a49ba5f778abc1e;hpb=46afb30d2d016a9b1581c7ee4ca96d614a35203c;p=gdcm.git diff --git a/src/gdcmRefCounter.h b/src/gdcmRefCounter.h index cafb7849..25ecce97 100644 --- a/src/gdcmRefCounter.h +++ b/src/gdcmRefCounter.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmRefCounter.h,v $ Language: C++ - Date: $Date: 2005/11/28 15:20:34 $ - Version: $Revision: 1.9 $ + Date: $Date: 2007/08/22 16:14:04 $ + Version: $Revision: 1.12 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,12 +16,14 @@ =========================================================================*/ -#ifndef GDCMREFCOUNTER_H -#define GDCMREFCOUNTER_H +#ifndef _GDCMREFCOUNTER_H_ +#define _GDCMREFCOUNTER_H_ #include "gdcmBase.h" +//#include "gdcmDebug.h" +#include -namespace gdcm +namespace GDCM_NAME_SPACE { //----------------------------------------------------------------------------- /** @@ -47,9 +49,10 @@ public: /// \remarks It decrements the reference counting void Unregister() { +//std::cout <<"================Unreg " << typeid(*this).name() << std::endl; RefCount--; if(RefCount<=0) - delete this; + delete this; } /// \brief Get the reference counting /// \return Reference count