]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Modifications to avoid compilation errors about conversion between
authormkr <mkr@opencascade.com>
Wed, 12 Apr 2006 05:54:03 +0000 (05:54 +0000)
committermkr <mkr@opencascade.com>
Wed, 12 Apr 2006 05:54:03 +0000 (05:54 +0000)
std::string and QString.

src/VISUGUI/VisuGUI.cxx

index 16b6a02f307709a99f5500110b19b1920a13a561..e6b590e30b4f1dbe072c720432a4975360a4abc2 100644 (file)
@@ -1140,7 +1140,7 @@ OnDeleteObjects()
         // It can be a reference on curve, published under a container.
         // In this case the curve should be removed from the container.
         // See bug 10441.
-        CORBA::Object_var aCorbaObj = VISU::GetSelectedObj(anAppStudy, aRefObj->GetID());
+        CORBA::Object_var aCorbaObj = VISU::GetSelectedObj(anAppStudy, aRefObj->GetID().c_str());
         if (!CORBA::is_nil(aCorbaObj)) {
           VISU::Base_var aVisuObj = VISU::Base::_narrow(aCorbaObj);
           if (!CORBA::is_nil(aVisuObj) && aVisuObj->GetType() == VISU::TMESH)
@@ -1151,7 +1151,7 @@ OnDeleteObjects()
           else if (!CORBA::is_nil(aVisuObj) && aVisuObj->GetType() == VISU::TCURVE) {
             VISU::Curve_ptr aCurve = VISU::Curve::_narrow(aVisuObj);
             _PTR(SObject) aParentSO = aSObject->GetFather();
-            aCorbaObj = VISU::GetSelectedObj(anAppStudy, aParentSO->GetID());
+            aCorbaObj = VISU::GetSelectedObj(anAppStudy, aParentSO->GetID().c_str());
             if (!CORBA::is_nil(aCorbaObj) && !CORBA::is_nil(aCurve)) {
               aVisuObj = VISU::Base::_narrow(aCorbaObj);
               if (!CORBA::is_nil(aVisuObj) && aVisuObj->GetType() == VISU::TCONTAINER) {