Ignore:
Timestamp:
Jul 9, 2009, 10:38:53 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
bd86e8
Parents:
669a7e
Message:

fixed compiler warning: deprecated conversion from string const to char * by changed char* to const char*

  • "hello" represents a const char *. Hence, if we point a char* at it, it may subsequently be altered, which is not allowed due to its const nature. Hence, the warning. However, we do not change the strings anyway, hence changing to const char *.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/parser.hpp

    r669a7e rc12297  
    5252
    5353        bool ParseMatrix(const char *name, int skiplines, int skipcolumns, int MatrixNr);
    54         virtual bool ParseFragmentMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns);
    55         bool AllocateMatrix(char *GivenHeader, int MCounter, int *RCounter, int CCounter);
     54        virtual bool ParseFragmentMatrix(const char *name, const char *prefix, string suffix, int skiplines, int skipcolumns);
     55        bool AllocateMatrix(const char *GivenHeader, int MCounter, int *RCounter, int CCounter);
    5656        bool ResetMatrix();
    5757        double FindMinValue();
     
    7272                bool ParseIndices();
    7373                bool SumSubEnergy(class EnergyMatrix &Fragments, class EnergyMatrix *CorrectionFragments, class KeySetsContainer &KeySet, int Order, double sign);
    74                 bool ParseFragmentMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns);
     74                bool ParseFragmentMatrix(const char *name, const char *prefix, string suffix, int skiplines, int skipcolumns);
    7575};
    7676
     
    7979class ForceMatrix : public MatrixContainer {
    8080        public:
    81                 bool ParseIndices(char *name);
     81                bool ParseIndices(const char *name);
    8282                bool SumSubForces(class ForceMatrix &Fragments, class KeySetsContainer &KeySet, int Order, double sign);
    83                 bool ParseFragmentMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns);
     83                bool ParseFragmentMatrix(const char *name, const char *prefix, string suffix, int skiplines, int skipcolumns);
    8484};
    8585
Note: See TracChangeset for help on using the changeset viewer.