Ignore:
Timestamp:
Jul 9, 2009, 11:01:08 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
ab7b5e7
Parents:
c12297
git-author:
Frederik Heber <heber@…> (07/09/09 10:59:00)
git-committer:
Frederik Heber <heber@…> (07/09/09 11:01:08)
Message:

Changed the unsatisfactory PathToDatabases construct, removing warning deprecated conversion from string constant to char *

  • new variable config::databasepath (initialized in config constructor, released in destructor)
  • Store.../LoadPeriodentafel() now have to receive const char *
  • PathToDatabases is removed, instead LocalPath is copied into config::databasepath
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/config.cpp

    rc12297 rbd86e8  
    1414{
    1515        mainname = (char *) MallocString(sizeof(char)*MAXSTRINGSIZE,"config constructor: mainname");
    16         defaultpath = (char *) MallocString(sizeof(char)*MAXSTRINGSIZE,"config constructor: mainname");
    17         pseudopotpath = (char *) MallocString(sizeof(char)*MAXSTRINGSIZE,"config constructor: mainname");
    18         configpath = (char *) MallocString(sizeof(char)*MAXSTRINGSIZE,"config constructor: mainname");
    19         configname = (char *) MallocString(sizeof(char)*MAXSTRINGSIZE,"config constructor: mainname");
     16        defaultpath = (char *) MallocString(sizeof(char)*MAXSTRINGSIZE,"config constructor: defaultpath");
     17        pseudopotpath = (char *) MallocString(sizeof(char)*MAXSTRINGSIZE,"config constructor: pseudopotpath");
     18  databasepath = (char *) MallocString(sizeof(char)*MAXSTRINGSIZE,"config constructor: databasepath");
     19        configpath = (char *) MallocString(sizeof(char)*MAXSTRINGSIZE,"config constructor: configpath");
     20        configname = (char *) MallocString(sizeof(char)*MAXSTRINGSIZE,"config constructor: configname");
    2021        strcpy(mainname,"pcp");
    2122        strcpy(defaultpath,"not specified");
     
    9394        Free((void **)&defaultpath, "config::~config: *defaultpath");
    9495        Free((void **)&pseudopotpath, "config::~config: *pseudopotpath");
     96  Free((void **)&databasepath, "config::~config: *databasepath");
    9597        Free((void **)&configpath, "config::~config: *configpath");
    9698        Free((void **)&configname, "config::~config: *configname");
Note: See TracChangeset for help on using the changeset viewer.