X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Utils.h;h=51d763492dcdc4f2af56e675e314eaee4f9dd37b;hp=c1aa3ad4dc57eef3fb351793de1a40f45b26f9c0;hb=b22e182dd1a2c30be324b21074158390d00714b3;hpb=251f8c052dd12dd29922210dc901b295fe999a0e diff --git a/src/SMESHGUI/SMESHGUI_Utils.h b/src/SMESHGUI/SMESHGUI_Utils.h index c1aa3ad4d..51d763492 100644 --- a/src/SMESHGUI/SMESHGUI_Utils.h +++ b/src/SMESHGUI/SMESHGUI_Utils.h @@ -182,7 +182,7 @@ SMESHGUI_EXPORT // type to use instead of SMESH_IDSource_var for automatic UnRegister() - typedef SALOME::GenericObj_wrap SMESH_IDSource_wrap; + typedef SALOME::GenericObj_wrap IDSource_wrap; /*! * \brief Class usefull to convert a string returned from a CORBA call @@ -210,7 +210,11 @@ SMESHGUI_EXPORT QString fromUtf8( const char* txt ); QString fromUtf8( const std::string& txt ); - const char* toUtf8( const QString& txt ); + struct toUtf8: public std::string + { + toUtf8( const QString& txt ); + operator const char*() const { return c_str(); } + }; } #endif // SMESHGUI_UTILS_H