From: eap Date: Fri, 9 Sep 2011 07:01:36 +0000 (+0000) Subject: - bool decrRef(); X-Git-Tag: V6_main_FINAL~958 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a4e8658605607bc81f04d168b5efb3629945e565;p=tools%2Fmedcoupling.git - bool decrRef(); + bool decrRef() const; void incrRef() const; --- diff --git a/src/MEDCoupling/MEDCouplingRefCountObject.cxx b/src/MEDCoupling/MEDCouplingRefCountObject.cxx index ec92491af..30b46baa1 100644 --- a/src/MEDCoupling/MEDCouplingRefCountObject.cxx +++ b/src/MEDCoupling/MEDCouplingRefCountObject.cxx @@ -29,7 +29,7 @@ RefCountObject::RefCountObject(const RefCountObject& other):_cnt(1) { } -bool RefCountObject::decrRef() +bool RefCountObject::decrRef() const { bool ret=((--_cnt)==0); if(ret) diff --git a/src/MEDCoupling/MEDCouplingRefCountObject.hxx b/src/MEDCoupling/MEDCouplingRefCountObject.hxx index 337906a17..e80d5d852 100644 --- a/src/MEDCoupling/MEDCouplingRefCountObject.hxx +++ b/src/MEDCoupling/MEDCouplingRefCountObject.hxx @@ -54,7 +54,7 @@ namespace ParaMEDMEM RefCountObject(); RefCountObject(const RefCountObject& other); public: - bool decrRef(); + bool decrRef() const; void incrRef() const; protected: virtual ~RefCountObject();