- Timestamp:
- Jun 27, 2008, 3:37:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/src/G4VisCommandsViewer.cc
r772 r846 25 25 // 26 26 // 27 // $Id: G4VisCommandsViewer.cc,v 1. 68 2007/01/11 16:41:30allison Exp $27 // $Id: G4VisCommandsViewer.cc,v 1.70 2008/04/30 10:07:28 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 … … 405 405 // blanks within quotation marks... 406 406 char c; 407 while (is.get(c) && c == ' ') ;407 while (is.get(c) && c == ' '){} 408 408 if (c == '"') { 409 while (is.get(c) && c != '"') originalName += c;409 while (is.get(c) && c != '"') {originalName += c;} 410 410 } 411 411 else { 412 412 originalName += c; 413 while (is.get(c) && c != ' ') originalName += c;413 while (is.get(c) && c != ' ') {originalName += c;} 414 414 } 415 415 originalName = originalName.strip (G4String::both, ' '); … … 427 427 originalName = originalViewer->GetName(); // Ensures long name. 428 428 429 while (is.get(c) && c == ' ') ;429 while (is.get(c) && c == ' '){} 430 430 if (c == '"') { 431 while (is.get(c) && c != '"') cloneName += c;431 while (is.get(c) && c != '"') {cloneName += c;} 432 432 } 433 433 else { 434 434 cloneName += c; 435 while (is.get(c) && c != ' ') cloneName += c;435 while (is.get(c) && c != ' ') {cloneName += c;} 436 436 } 437 437 cloneName = cloneName.strip (G4String::both, ' '); … … 564 564 // contains embedded blanks within quotation marks... 565 565 char c; 566 while (is.get(c) && c == ' ') ;566 while (is.get(c) && c == ' '){} 567 567 if (c == '"') { 568 while (is.get(c) && c != '"') newName += c;568 while (is.get(c) && c != '"') {newName += c;} 569 569 } 570 570 else { 571 571 newName += c; 572 while (is.get(c) && c != ' ') newName += c;572 while (is.get(c) && c != ' ') {newName += c;} 573 573 } 574 574 newName = newName.strip (G4String::both, ' ');
Note: See TracChangeset
for help on using the changeset viewer.