Changeset 3572 in Sophya for trunk/SophyaLib/BaseTools/dvlist.cc


Ignore:
Timestamp:
Feb 7, 2009, 10:50:34 PM (17 years ago)
Author:
cmv
Message:

char* -> const char* pour regler les problemes de deprecated string const... + comparaison unsigned signed + suppression EVOL_PLANCK rz+cmv 07/02/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/dvlist.cc

    r3233 r3572  
    115115/* --Methode-- */
    116116/*! Copy constructor - Object initialized using the PPF file \b flnm */
    117 DVList::DVList(char *flnm)
     117DVList::DVList(const char *flnm)
    118118{
    119119PInPersist s(flnm);
     
    192192// int_8   GetI(string const& key, int_8  def=-1)
    193193// r_8     GetD(string const& key, r_8 def=-9.e19)
    194 // string  GetS(string const& key, char* def="")
     194// string  GetS(string const& key, const char* def="")
    195195//      Retourne la valeur de la variable de nom "key" et de type entier, réél,
    196196//      chaine de caracteres.
     
    245245/*! Returns the value corresponding to name \b key, converted to string
    246246    Default value \b def is returned if name \b key not found */
    247 string      DVList::GetS(string const& key, char* def) const
     247string      DVList::GetS(string const& key, const char* def) const
    248248{
    249249ValList::const_iterator it = mvlist.find(key);
     
    265265// void  SetD(string const& key, r_8 val)
    266266// void  SetZ(string const& key, complex<r_8> val)
    267 // void  SetS(string const& key, char*  val)
     267// void  SetS(string const& key, const char*  val)
    268268// void  SetS(string const& key, string val)
    269269//      Crée la variable de nom "key", de type entier, double, complexe, string et
     
    322322/* --Methode-- */
    323323/*! Appends or sets the string value \b val in the list with name \b key */
    324 void        DVList::SetS(string const& key, char const* val)
     324void        DVList::SetS(string const& key, const char * val)
    325325{
    326326MuTyV div(val);
Note: See TracChangeset for help on using the changeset viewer.