From: mkr Date: Wed, 12 Apr 2006 05:54:03 +0000 (+0000) Subject: Modifications to avoid compilation errors about conversion between X-Git-Tag: T3_2_0b1_pre1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=99f6d2abba8e1557bc5daf1fa7078acb49851687;p=modules%2Fvisu.git Modifications to avoid compilation errors about conversion between std::string and QString. --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 16b6a02f..e6b590e3 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -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) {