Salome HOME
Add c_str() function to avoid compilation errors.
authormkr <mkr@opencascade.com>
Fri, 22 Jul 2005 10:15:22 +0000 (10:15 +0000)
committermkr <mkr@opencascade.com>
Fri, 22 Jul 2005 10:15:22 +0000 (10:15 +0000)
src/VISUGUI/VisuGUI_StreamLinesDlg.cxx

index 9f554b33098244fffa231514c6d565486206eae3..80ea795630694b13a22f7b69becfb2045c080bf7 100644 (file)
@@ -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;
                }