Changeset 1044 for trunk/source/intercoms/src
- Timestamp:
- May 15, 2009, 12:25:18 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/source/intercoms/src/G4UIcommandTree.cc (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/intercoms/src/G4UIcommandTree.cc
r1031 r1044 25 25 // 26 26 // 27 // $Id: G4UIcommandTree.cc,v 1.1 4 2008/01/30 11:20:03lgarnier 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: $ 29 29 // 30 30 … … 229 229 G4String pathName = aCommandPath; 230 230 G4String remainingPath = aCommandPath; 231 G4String empty = ""; 232 G4String matchingPath = empty; 231 233 232 234 // find the tree … … 235 237 G4UIcommandTree* aTree = FindCommandTree(pathName); 236 238 237 G4String empty = "";238 239 if (!aTree) { 239 240 return empty; … … 245 246 246 247 // list matched directories/commands 247 G4String str eam, strtmp;248 G4String strtmp; 248 249 G4int nMatch= 0; 249 250 … … 257 258 if( fpdir.index(remainingPath, 0) == 0) { 258 259 if(nMatch==0) { 259 stream= fpdir;260 matchingPath = fpdir; 260 261 } else { 261 stream = GetFirstMatchedString(fpdir,stream);262 matchingPath = GetFirstMatchedString(fpdir,matchingPath); 262 263 } 263 264 nMatch++; … … 282 283 if( fpcmd.index(remainingPath, 0) ==0) { 283 284 if(nMatch==0) { 284 stream= fpcmd + " ";285 matchingPath= fpcmd + " "; 285 286 } else { 286 287 strtmp= fpcmd + " "; 287 stream= GetFirstMatchedString(stream, strtmp);288 matchingPath= GetFirstMatchedString(matchingPath, strtmp); 288 289 } 289 290 nMatch++; … … 299 300 } 300 301 301 return stream;302 return matchingPath; 302 303 } 303 304
Note:
See TracChangeset
for help on using the changeset viewer.
