From: vsr Date: Fri, 30 Nov 2018 10:20:11 +0000 (+0300) Subject: Add const classifier to getters to be able to use in const methods. X-Git-Tag: V9_3_0a1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e5b98481928c437567b5379bc34d34bfdcebdaaf;p=modules%2Fkernel.git Add const classifier to getters to be able to use in const methods. --- diff --git a/src/GenericObj/SALOME_GenericObj_wrap.hxx b/src/GenericObj/SALOME_GenericObj_wrap.hxx index be8069a94..8263a2cbd 100644 --- a/src/GenericObj/SALOME_GenericObj_wrap.hxx +++ b/src/GenericObj/SALOME_GenericObj_wrap.hxx @@ -130,15 +130,15 @@ namespace SALOME return *this; } // ACCESS - operator TPtr() + operator TPtr() const { return _obj.in(); } - operator TVar() + operator TVar() const { return _obj; } - TVar operator->() + TVar operator->() const { return _obj; }