Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7255 in orxonox.OLD for branches/preferences/src/orxonox.cc


Ignore:
Timestamp:
Mar 30, 2006, 11:11:16 AM (19 years ago)
Author:
rennerc
Message:

one char* removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/preferences/src/orxonox.cc

    r7254 r7255  
    8989
    9090  /* this way, there is no network enabled: */
    91   this->serverName = NULL;
     91  this->serverName = "";
    9292  this->port = -1;
    9393
     
    185185 * initialize Orxonox with command line
    186186 */
    187 int Orxonox::init (int argc, char** argv, const char* name, int port)
     187int Orxonox::init (int argc, char** argv, const std::string & name, int port)
    188188{
    189189  this->argc = argc;
     
    277277  PRINT(3)("> Initializing networking\n");
    278278
    279   if( this->serverName != NULL) // we are a client
     279  if( this->serverName != "") // we are a client
    280280  {
    281281    State::setOnline(true);
     
    424424    return startNetworkOrxonox(argc, argv);
    425425 
    426   return startOrxonox(argc, argv, NULL, -1);
     426  return startOrxonox(argc, argv, "", -1);
    427427  return 0;
    428428}
     
    461461    printf("Starting Orxonox as server: listening on port %i\n", port);
    462462   
    463     startOrxonox(argc, argv, NULL, port);
     463    startOrxonox(argc, argv, "", port);
    464464  }
    465465}
     
    472472 * @param argv parameters given to orxonox
    473473 */
    474 int startOrxonox(int argc, char** argv, const char* name, int port)
     474int startOrxonox(int argc, char** argv, const std::string & name, int port)
    475475{
    476476  // checking for existence of the configuration-files, or if the lock file is still used
Note: See TracChangeset for help on using the changeset viewer.