From a4e8658605607bc81f04d168b5efb3629945e565 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 9 Sep 2011 07:01:36 +0000 Subject: [PATCH] - bool decrRef(); + bool decrRef() const; void incrRef() const; --- src/MEDCoupling/MEDCouplingRefCountObject.cxx | 2 +- src/MEDCoupling/MEDCouplingRefCountObject.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2