Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 27, 2011, 3:11:42 AM (13 years ago)
Author:
rgrieder
Message:

Increased code readability by replacing some BLANKSTRING with plain old "".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/usability/src/orxonox/gamestates/GSMainMenu.cc

    r7966 r7978  
    5757    static const std::string __CC_setMainMenuSoundPath_name = "setMMSoundPath";
    5858
    59     SetConsoleCommand(__CC_startStandalone_name,      &GSMainMenu::startStandalone).defaultValues(BLANKSTRING).deactivate();
    60     SetConsoleCommand(__CC_startServer_name,          &GSMainMenu::startServer    ).defaultValues(BLANKSTRING).deactivate();
    61     SetConsoleCommand(__CC_startClient_name,          &GSMainMenu::startClient    ).defaultValues(BLANKSTRING).deactivate();
    62     SetConsoleCommand(__CC_startDedicated_name,       &GSMainMenu::startDedicated ).defaultValues(BLANKSTRING).deactivate();
     59    SetConsoleCommand(__CC_startStandalone_name,      &GSMainMenu::startStandalone).defaultValues("").deactivate();
     60    SetConsoleCommand(__CC_startServer_name,          &GSMainMenu::startServer    ).defaultValues("").deactivate();
     61    SetConsoleCommand(__CC_startClient_name,          &GSMainMenu::startClient    ).defaultValues("").deactivate();
     62    SetConsoleCommand(__CC_startDedicated_name,       &GSMainMenu::startDedicated ).defaultValues("").deactivate();
    6363    SetConsoleCommand(__CC_setMainMenuSoundPath_name, &GSMainMenu::setMainMenuSoundPath).hide();
    6464
     
    176176    void GSMainMenu::startStandalone(const std::string& level)
    177177    {
    178         if(level != BLANKSTRING)
     178        if(level != "")
    179179            LevelManager::getInstance().setDefaultLevel(level);
    180180
     
    192192    void GSMainMenu::startServer(const std::string& level)
    193193    {
    194         if(level != BLANKSTRING)
     194        if(level != "")
    195195            LevelManager::getInstance().setDefaultLevel(level);
    196196
     
    208208    void GSMainMenu::startClient(const std::string& destination)
    209209    {
    210         if(destination != BLANKSTRING)
     210        if(destination != "")
    211211            Client::getInstance()->setDestination(destination, NETWORK_PORT);
    212212
     
    224224    void GSMainMenu::startDedicated(const std::string& level)
    225225    {
    226         if(level != BLANKSTRING)
     226        if(level != "")
    227227            LevelManager::getInstance().setDefaultLevel(level);
    228228
Note: See TracChangeset for help on using the changeset viewer.