Ignore:
Timestamp:
Jun 27, 2008, 3:37:41 PM (16 years ago)
Author:
garnier
Message:

last updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/management/src/G4VisCommandsViewer.cc

    r772 r846  
    2525//
    2626//
    27 // $Id: G4VisCommandsViewer.cc,v 1.68 2007/01/11 16:41:30 allison Exp $
     27// $Id: G4VisCommandsViewer.cc,v 1.70 2008/04/30 10:07:28 allison Exp $
    2828// GEANT4 tag $Name:  $
    2929
     
    405405  // blanks within quotation marks...
    406406  char c;
    407   while (is.get(c) && c == ' ');
     407  while (is.get(c) && c == ' '){}
    408408  if (c == '"') {
    409     while (is.get(c) && c != '"') originalName += c;
     409    while (is.get(c) && c != '"') {originalName += c;}
    410410  }
    411411  else {
    412412    originalName += c;
    413     while (is.get(c) && c != ' ') originalName += c;
     413    while (is.get(c) && c != ' ') {originalName += c;}
    414414  }
    415415  originalName = originalName.strip (G4String::both, ' ');
     
    427427  originalName = originalViewer->GetName();  // Ensures long name.
    428428
    429   while (is.get(c) && c == ' ');
     429  while (is.get(c) && c == ' '){}
    430430  if (c == '"') {
    431     while (is.get(c) && c != '"') cloneName += c;
     431    while (is.get(c) && c != '"') {cloneName += c;}
    432432  }
    433433  else {
    434434    cloneName += c;
    435     while (is.get(c) && c != ' ') cloneName += c;
     435    while (is.get(c) && c != ' ') {cloneName += c;}
    436436  }
    437437  cloneName = cloneName.strip (G4String::both, ' ');
     
    564564  // contains embedded blanks within quotation marks...
    565565  char c;
    566   while (is.get(c) && c == ' ');
     566  while (is.get(c) && c == ' '){}
    567567  if (c == '"') {
    568     while (is.get(c) && c != '"') newName += c;
     568    while (is.get(c) && c != '"') {newName += c;}
    569569  }
    570570  else {
    571571    newName += c;
    572     while (is.get(c) && c != ' ') newName += c;
     572    while (is.get(c) && c != ' ') {newName += c;}
    573573  }
    574574  newName = newName.strip (G4String::both, ' ');
Note: See TracChangeset for help on using the changeset viewer.