From: mkr Date: Fri, 22 Jul 2005 10:15:22 +0000 (+0000) Subject: Add c_str() function to avoid compilation errors. X-Git-Tag: V3_0_1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ecd894f04a6fda04697c23f4607af5dc0ab473f5;p=modules%2Fvisu.git Add c_str() function to avoid compilation errors. --- diff --git a/src/VISUGUI/VisuGUI_StreamLinesDlg.cxx b/src/VISUGUI/VisuGUI_StreamLinesDlg.cxx index 9f554b33..80ea7956 100644 --- a/src/VISUGUI/VisuGUI_StreamLinesDlg.cxx +++ b/src/VISUGUI/VisuGUI_StreamLinesDlg.cxx @@ -117,7 +117,7 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule) _PTR(GenericAttribute) anAttr; if (aChildSObj->FindAttribute(anAttr, "AttributeName")) { _PTR(AttributeName) aName (anAttr); - myPrsLst += QString(aName->Value()); + myPrsLst += QString(aName->Value().c_str()); myPrsList.append(aPrsObj); continue; } @@ -142,15 +142,15 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule) VISU::Prs3d_var aPrsObj = VISU::Prs3d::_narrow(aChildObject); switch (aType) { case VISU::TFAMILY: - myFamilisLst += QString(aName->Value()); + myFamilisLst += QString(aName->Value().c_str()); myFamilyList.append(aPrsObj); break; case VISU::TGROUP: - myGroupsLst += QString(aName->Value()); + myGroupsLst += QString(aName->Value().c_str()); myGroupList.append(aPrsObj); break; case VISU::TENTITY: - myEntitiesLst += QString(aName->Value()); + myEntitiesLst += QString(aName->Value().c_str()); myEntityList.append(aPrsObj); break; }