]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
- bool decrRef();
authoreap <eap@opencascade.com>
Fri, 9 Sep 2011 07:01:36 +0000 (07:01 +0000)
committereap <eap@opencascade.com>
Fri, 9 Sep 2011 07:01:36 +0000 (07:01 +0000)
+    bool decrRef() const;
     void incrRef() const;

src/MEDCoupling/MEDCouplingRefCountObject.cxx
src/MEDCoupling/MEDCouplingRefCountObject.hxx

index ec92491afb815460242cb3867977c4d43813ce3a..30b46baa1189ac1076bab0ed9314abb5e73638f9 100644 (file)
@@ -29,7 +29,7 @@ RefCountObject::RefCountObject(const RefCountObject& other):_cnt(1)
 {
 }
 
-bool RefCountObject::decrRef()
+bool RefCountObject::decrRef() const
 {
   bool ret=((--_cnt)==0);
   if(ret)
index 337906a17baa24418e50b990587a00fb1464b722..e80d5d852f9b7e517924eb4b8a906d7b0c04a668 100644 (file)
@@ -54,7 +54,7 @@ namespace ParaMEDMEM
     RefCountObject();
     RefCountObject(const RefCountObject& other);
   public:
-    bool decrRef();
+    bool decrRef() const;
     void incrRef() const;
   protected:
     virtual ~RefCountObject();