From 8dd42436e8ccfb1b5cee06ecd4595f57c3bcf596 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 1 Jun 2007 13:06:38 +0000 Subject: [PATCH] Minor changes --- src/VISU_I/VISU_Prs3d_i.cc | 2 ++ src/VISU_I/VISU_Result_i.cc | 13 ++++++------- src/VISU_I/VISU_ScalarMap_i.hh | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/VISU_I/VISU_Prs3d_i.cc b/src/VISU_I/VISU_Prs3d_i.cc index f1e8d226..b8edb3a7 100644 --- a/src/VISU_I/VISU_Prs3d_i.cc +++ b/src/VISU_I/VISU_Prs3d_i.cc @@ -285,9 +285,11 @@ VISU::Prs3d_i CORBA::Object_var anObject = VISU::SObjectToObject(aSObject); if(CORBA::is_nil(anObject)) continue; + VISU::Result_var aResult = VISU::Result::_narrow(anObject); if(CORBA::is_nil(aResult)) continue; + CORBA::String_var anEntry = aSObject->GetID(); aResultEntry = anEntry.in(); } diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index 86be553a..97f15e14 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -787,7 +787,6 @@ namespace VISU const TMeshMap& aMeshMap = theInput->GetMeshMap(); TMeshMap::const_iterator aMeshMapIter = aMeshMap.begin(); - const string& aMeshName = aMeshMapIter->first; const PMesh& aMesh = aMeshMapIter->second; vector listParts = multiprObj.getParts(); @@ -816,12 +815,12 @@ namespace VISU char lMEDFileName[256]; // parse infos - int ret = sscanf(strPartInfo, "%s %d %s %s %s", - lMeshName, - &lId, - lPartName, - lPath, - lMEDFileName); + sscanf(strPartInfo, "%s %d %s %s %s", + lMeshName, + &lId, + lPartName, + lPath, + lMEDFileName); if ((strstr(lPartName,"_MED") != NULL) || (strstr(lPartName,"_LOW") != NULL)) { diff --git a/src/VISU_I/VISU_ScalarMap_i.hh b/src/VISU_I/VISU_ScalarMap_i.hh index bdefaf63..0ca9404c 100644 --- a/src/VISU_I/VISU_ScalarMap_i.hh +++ b/src/VISU_I/VISU_ScalarMap_i.hh @@ -38,7 +38,7 @@ namespace VISU { //============================================================================ class VISU_I_EXPORT ScalarMap_i : public virtual POA_VISU::ScalarMap, - public virtual ColoredPrs3d_i + public virtual ColoredPrs3d_i { static int myNbPresent; ScalarMap_i(const ScalarMap_i&); -- 2.39.2