Changeset 264 for trunk/bin


Ignore:
Timestamp:
Apr 30, 2007, 11:54:25 PM (14 years ago)
Author:
Peter Johansson
Message:

turned Configuration class into a singleton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svndigest.cc

    r235 r264  
    6060
    6161  // Reading configuration file
    62   Configuration* config = NULL;
     62  Configuration* config = Configuration::instance();
    6363  if (node_exist(option->config_file())) {
    6464    std::ifstream is(option->config_file().c_str());
     
    6969      exit(-1);
    7070    }
    71     config = new Configuration(is);
     71    config->load(is);
    7272    is.close();
    7373  }
    7474  else
    75     config = new Configuration;
     75    config->load();
    7676  assert(config);
    7777 
Note: See TracChangeset for help on using the changeset viewer.