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/periodentafel.hpp

    rc12297 rbd86e8  
    6666        bool CleanupPeriodtable();
    6767        element * FindElement(int Z);
    68         element * FindElement(char *shorthand) const;
     68        element * FindElement(const char *shorthand) const;
    6969        element * AskElement();
    7070        bool Output(ofstream *output) const;
    7171        bool Checkout(ofstream *output, const int *checkliste) const;
    72         bool LoadPeriodentafel(char *path = NULL);
    73         bool StorePeriodentafel(char *path = NULL) const;
     72        bool LoadPeriodentafel(const char *path);
     73        bool StorePeriodentafel(const char *path) const;
    7474
    7575        private:
Note: See TracChangeset for help on using the changeset viewer.