X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_HypothesesUtils.cxx;h=255d2f5751554fa993c6a6e571e4c38dd1f64566;hp=7aff8c6ce1b4b281c333e3d19cadf152d9832d07;hb=6df8817c1a9827149025cc942249d7083f504d3d;hpb=8d297d6698f361d4f2dde723050bcfbaea050920 diff --git a/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx b/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx index 7aff8c6ce..255d2f575 100644 --- a/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx +++ b/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx @@ -523,13 +523,15 @@ namespace SMESH if(MYDEBUG) MESSAGE("Loading client meshers plugin library ..."); #ifdef WIN32 #ifdef UNICODE - LPTSTR path = new TCHAR[aClientLibName.length() + 1]; - path[aClientLibName.toWCharArray(path)] = '\0'; + LPTSTR path = new TCHAR[aClientLibName.length() + 1]; + path[aClientLibName.toWCharArray(path)] = '\0'; #else - const char* path = aClientLibName.toUtf8().data(); + QByteArray baPath = aClientLibName.toUtf8(); + const char* path = baPath.data(); #endif #else - char* path = aClientLibName.toUtf8().data(); + QByteArray baPath = aClientLibName.toUtf8(); + char* path = baPath.data(); #endif LibHandle libHandle = LoadLib( path ); if (!libHandle) {