From: apo Date: Wed, 23 May 2007 10:28:44 +0000 (+0000) Subject: Just improve layouting X-Git-Tag: V4_0~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=55a6757e47dd0a491ecc1bb459a6f4e84431d135;p=modules%2Fvisu.git Just improve layouting --- diff --git a/src/VISU_I/VISUConfig.cc b/src/VISU_I/VISUConfig.cc index c78fe7ec..c0e51c20 100644 --- a/src/VISU_I/VISUConfig.cc +++ b/src/VISU_I/VISUConfig.cc @@ -195,12 +195,13 @@ namespace VISU{ bool isExist; QString aComment = VISU::Storable::FindValue(aMap,"myComment",&isExist); if ( isExist ) { - TCallbackMap::const_iterator i = VisuStoreMap.find(aComment.latin1()); - if(MYDEBUG) MESSAGE("Storable::Create - "<second)(theSObject,thePrefix,aMap); + TCallbackMap::const_iterator anIter = VisuStoreMap.find(aComment.latin1()); + if(MYDEBUG) MESSAGE("Storable::Create - "<second)(theSObject, thePrefix, aMap); } - }catch(std::logic_error& exc){ + }catch(std::exception& exc){ INFOS("Follow exception was occured :\n"<> there is no value for "<> there is no value for ") + theArg); static QString BAD_VALUE("NULL"); return BAD_VALUE; } - if(isFind != NULL) *isFind = true; - return i->second; + if(theIsFind != NULL) + *theIsFind = true; + return anIter->second; } diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index 4914a115..86be553a 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -1673,7 +1673,7 @@ VISU::Result_i } if(MYDEBUG) MESSAGE("Result_i::Restore - aFileName = " << myFileInfo.filePath() << "; " << myFileInfo.isFile()); - + const char* aPathLatin = myFileInfo.filePath().latin1(); if (HDFascii::isASCII(aPathLatin)) { MESSAGE("ConvertFromASCIIToHDF(" << aPathLatin << ")"); @@ -1681,13 +1681,13 @@ VISU::Result_i MESSAGE("ConvertFromASCIIToHDF() DONE : " << aResultPath); char* aHDFFileName = new char[strlen(aResultPath) + 19]; sprintf(aHDFFileName, "%shdf_from_ascii.hdf", aResultPath); - + if (IsMultifile()) { // set this file as new - temporary static QString aCommand; aCommand.sprintf(" %s %s%s",aHDFFileName, aResultPath, myFileInfo.baseName().latin1()); - aCommand = QDir::convertSeparators( aCommand ); - aCommand.prepend( MOVE_COMMAND ); - + aCommand = QDir::convertSeparators( aCommand ); + aCommand.prepend( MOVE_COMMAND ); + if (system(aCommand.latin1()) == -1) { if(MYDEBUG) MESSAGE("VISU::Result_i::Restore - Can't execute the command :" << aCommand); return NULL; @@ -1698,10 +1698,10 @@ VISU::Result_i } else { // change current temporary file to the new: with hdf-format static QString aCommand; aCommand.sprintf(" %s %s\0",aHDFFileName, myFileInfo.filePath().latin1()); - aCommand = QDir::convertSeparators( aCommand ); - aCommand.prepend( MOVE_COMMAND ); - - if (system(aCommand.latin1()) == -1) { + aCommand = QDir::convertSeparators( aCommand ); + aCommand.prepend( MOVE_COMMAND ); + + if (system(aCommand.latin1()) == -1) { if(MYDEBUG) MESSAGE("VISU::Result_i::Restore - Can't execute the command :" << aCommand); return NULL; } else {