Changeset 404 in Sophya for trunk/SophyaLib/NTools/dvlist.h


Ignore:
Timestamp:
Sep 10, 1999, 4:48:55 PM (26 years ago)
Author:
ansari
Message:

Bug ds DVList corrige ds PEIDA Reza 10/9/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/dvlist.h

    r278 r404  
    4040  inline MuTyV(float f) { typ = 'D'; mtv.dv = (double)f;  mtv.iv = 0;  mtv.strv[0] ='\0'; }
    4141  inline MuTyV(double d) { typ = 'D'; mtv.dv = d; mtv.iv = 0;  mtv.strv[0] ='\0'; }
    42   inline MuTyV(char const* s)  { typ = 'S'; strncpy(mtv.strv, s, 31); mtv.strv[30] = '\0'; mtv.iv = 0; mtv.dv = 0.; }
    43   inline MuTyV(string const& s) { typ = 'S'; strncpy(mtv.strv, s.c_str(), 31); mtv.strv[30] = '\0'; mtv.iv = 0; mtv.dv = 0.; }
     42  inline MuTyV(char const* s)  { typ = 'S'; strncpy(mtv.strv, s, 31); mtv.strv[30] = '\0'; }
     43  inline MuTyV(string const& s) { typ = 'S'; strncpy(mtv.strv, s.c_str(), 31); mtv.strv[30] = '\0'; }
    4444  inline int_4  operator= (int_4 v)  { typ = 'I'; mtv.iv = v; return(v); }
    4545  inline float  operator= (float v)  { typ = 'D'; mtv.dv = (double)v; return(v); }
Note: See TracChangeset for help on using the changeset viewer.