From: eap Date: Tue, 24 Feb 2009 14:52:58 +0000 (+0000) Subject: 0019929: EDF 772 SMESH : script readability X-Git-Tag: V5_1_1a2~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=df4afe2d5042fe47a4e635d579f698aaa1749dcf;p=modules%2Fsmesh.git 0019929: EDF 772 SMESH : script readability + + operator char*() const { + return (char*)c_str(); + } --- diff --git a/src/SMESH/SMESH_Comment.hxx b/src/SMESH/SMESH_Comment.hxx index 14d42faf4..d1d32b9e6 100644 --- a/src/SMESH/SMESH_Comment.hxx +++ b/src/SMESH/SMESH_Comment.hxx @@ -62,6 +62,10 @@ public : this->string::operator=( _s.str() ); return *this ; } + + operator char*() const { + return (char*)c_str(); + } };