Changeset 161


Ignore:
Timestamp:
1999-02-22T11:26:40+13:00 (25 years ago)
Author:
rjmcnab
Message:

Made getint() a constant function.

Location:
trunk/gsdl/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/text_t.cpp

    r138 r161  
    1212/*
    1313   $Log$
     14   Revision 1.7  1999/02/21 22:26:39  rjmcnab
     15
     16   Made getint() a constant function.
     17
    1418   Revision 1.6  1999/02/03 01:13:26  sjboddie
    1519
     
    135139}
    136140
    137 int text_t::getint ()
     141int text_t::getint () const
    138142{
    139143  int i = 0;
    140144  int mult = 1; // become -1 for negative numbers
    141145
    142   iterator here = text.begin();
    143   iterator end = text.end();
     146  const_iterator here = text.begin();
     147  const_iterator end = text.end();
    144148 
    145149  // do plus and minus signs
  • trunk/gsdl/lib/text_t.h

    r138 r161  
    111111  text_t &operator=(int i) {setint (i);return *this;}
    112112  text_t &operator+= (int i) {appendint(i);return *this;}
    113   int getint ();
     113  int getint () const;
    114114
    115115  // support for arrays of chars
Note: See TracChangeset for help on using the changeset viewer.