Ignore:
Timestamp:
May 15, 2009, 12:25:18 PM (17 years ago)
Author:
garnier
Message:

maj en aussi sur CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/intercoms/src/G4UIcommandTree.cc

    r1031 r1044  
    2525//
    2626//
    27 // $Id: G4UIcommandTree.cc,v 1.14 2008/01/30 11:20:03 lgarnier Exp $
    28 // GEANT4 tag $Name: geant4-09-02 $
     27// $Id: G4UIcommandTree.cc,v 1.15 2009/05/07 09:33:51 lgarnier Exp $
     28// GEANT4 tag $Name: $
    2929//
    3030
     
    229229  G4String pathName = aCommandPath;
    230230  G4String remainingPath = aCommandPath;
     231  G4String empty = "";
     232  G4String matchingPath = empty;
    231233
    232234  // find the tree
     
    235237  G4UIcommandTree* aTree = FindCommandTree(pathName);
    236238
    237   G4String empty = "";
    238239  if (!aTree) {
    239240    return empty;
     
    245246
    246247  // list matched directories/commands
    247   G4String stream, strtmp;
     248  G4String strtmp;
    248249  G4int nMatch= 0;
    249250
     
    257258    if( fpdir.index(remainingPath, 0) == 0) {
    258259      if(nMatch==0) {
    259         stream = fpdir;
     260        matchingPath = fpdir;
    260261      } else {
    261         stream = GetFirstMatchedString(fpdir,stream);
     262        matchingPath = GetFirstMatchedString(fpdir,matchingPath);
    262263      }
    263264      nMatch++;
     
    282283    if( fpcmd.index(remainingPath, 0) ==0) {
    283284      if(nMatch==0) {
    284         stream= fpcmd + " ";
     285        matchingPath= fpcmd + " ";
    285286      } else {
    286287        strtmp= fpcmd + " ";
    287         stream= GetFirstMatchedString(stream, strtmp);
     288        matchingPath= GetFirstMatchedString(matchingPath, strtmp);
    288289      }
    289290      nMatch++;
     
    299300  }
    300301
    301   return stream;
     302  return matchingPath;
    302303}
    303304
Note: See TracChangeset for help on using the changeset viewer.