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.cpp

    rc12297 rbd86e8  
    9292 * \return pointer to element
    9393 */
    94 element * periodentafel::FindElement(char *shorthand) const
     94element * periodentafel::FindElement(const char *shorthand) const
    9595{
    9696        element *walker =       periodentafel::start;
     
    162162 * \param *path to to standard file names
    163163 */
    164 bool periodentafel::LoadPeriodentafel(char *path)
     164bool periodentafel::LoadPeriodentafel(const char *path)
    165165{
    166166        ifstream infile;
     
    301301/** Stores element list to file.
    302302 */
    303 bool periodentafel::StorePeriodentafel(char *path) const
     303bool periodentafel::StorePeriodentafel(const char *path) const
    304304{
    305305        bool result = true;
Note: See TracChangeset for help on using the changeset viewer.