]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Add const classifier to getters to be able to use in const methods.
authorvsr <vsr@opencascade.com>
Fri, 30 Nov 2018 10:20:11 +0000 (13:20 +0300)
committervsr <vsr@opencascade.com>
Fri, 30 Nov 2018 10:20:11 +0000 (13:20 +0300)
src/GenericObj/SALOME_GenericObj_wrap.hxx

index be8069a9427ffce137895d55ab3fa732c7e003ab..8263a2cbda93e28ce78ace4b22b9df94ebd561fe 100644 (file)
@@ -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;
     }