Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2625 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_exec.cc


Ignore:
Timestamp:
Oct 22, 2004, 12:28:17 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: minor optimization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/gui/orxonox_gui_exec.cc

    r2615 r2625  
    139139          fprintf (CONFIG_FILE, "[%s]\n", static_cast<Packer*>(widget)->getGroupName());
    140140          writeFileText (static_cast<Packer*>(widget)->down, depth+1);
     141          fprintf(CONFIG_FILE, "\n");
    141142        }
    142143      else
     
    210211        static_cast<Option*>(widget)->value = variableValue;
    211212
    212   switch (widget->is_option)
    213     {
    214     case -1:
    215       readFileText (static_cast<Container*>(widget)->down, variableName, variableValue);
    216       break;
    217     case -2:
    218       readFileText (static_cast<Box*>(widget)->down, variableName, variableValue);
    219       break;
     213  if (widget->is_option < 0)
     214    {
     215
     216      readFileText (static_cast<Packer*>(widget)->down, variableName, variableValue);
    220217    }
    221218
Note: See TracChangeset for help on using the changeset viewer.