From df4afe2d5042fe47a4e635d579f698aaa1749dcf Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 24 Feb 2009 14:52:58 +0000 Subject: [PATCH] 0019929: EDF 772 SMESH : script readability + + operator char*() const { + return (char*)c_str(); + } --- src/SMESH/SMESH_Comment.hxx | 4 ++++ 1 file changed, 4 insertions(+) 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(); + } }; -- 2.39.2