X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmRefCounter.h;h=a5e39fe34eaed7c9d028de939fce8c36c914cfff;hb=441fbb6d0d186a8ffe0b43b5d59e44d7f107a4e6;hp=bb1e2b0bb59824536bb6f39e76b1038ac98da9fb;hpb=928d3c30e40ab7f3d12bfd038ce8a48befcddce8;p=gdcm.git diff --git a/src/gdcmRefCounter.h b/src/gdcmRefCounter.h index bb1e2b0b..a5e39fe3 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/10/21 10:29:51 $ - Version: $Revision: 1.3 $ + Date: $Date: 2005/10/21 15:34:56 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -31,14 +31,13 @@ namespace gdcm */ class GDCM_EXPORT RefCounter : public Base { -public: - gdcmTypeMacro(RefCounter) + gdcmTypeMacro(RefCounter); public: // Allocator / Unallocator /// Delete the object /// \remarks The object is deleted only if its reference counting is to zero - inline virtual void Delete(void) + inline void Delete(void) { Unregister(); } @@ -46,13 +45,13 @@ public: // Reference count /// Register the object /// \remarks It increments the reference counting - inline virtual void Register(void) + inline void Register(void) { RefCount++; } /// Unregister the object /// \remarks It decrements the reference counting - inline virtual void Unregister(void) + inline void Unregister(void) { RefCount--; if(RefCount==0)