Ignore:
Timestamp:
Mar 2, 2008, 12:29:06 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • Fix almost 2,000 warnings by using proper "const" keywords where needed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/include/input.hpp

    r2 r39  
    1212  int act_id;
    1313public :
    14   button(int X, int Y, int ID, char *Text, ifield *Next);
     14  button(int X, int Y, int ID, char const *Text, ifield *Next);
    1515  button(int X, int Y, int ID, image *vis, ifield *Next);
    1616  button(int X, int Y, int ID, image *Depressed, image *Pressed, image *active, ifield *Next);
     
    6464  }
    6565public :
    66   text_field(int X, int Y, int ID, char *Prompt, char *Format,
    67                                char *Data, ifield *Next);
    68   text_field(int X, int Y, int ID, char *Prompt, char *Format,
     66  text_field(int X, int Y, int ID, char const *Prompt, char const *Format,
     67                               char const *Data, ifield *Next);
     68  text_field(int X, int Y, int ID, char const *Prompt, char const *Format,
    6969                               double Data, ifield *Next);
    7070
     
    7676  virtual ~text_field() { jfree(prompt); jfree(format); jfree(data); }
    7777  virtual char *read();
    78   void change_data(char *new_data, int new_cursor,       // cursor==-1, does not change it.
     78  void change_data(char const *new_data, int new_cursor,       // cursor==-1, does not change it.
    7979                   int active, image *screen, window_manager *wm);
    8080} ;
     
    8585  char *text;
    8686  int w,h;
    87   void put_para(image *screen, char *st, int dx, int dy, int xspace,
     87  void put_para(image *screen, char const *st, int dx, int dy, int xspace,
    8888                int yspace, JCFont *font, int color);
    8989public :
    90   info_field(int X, int Y, int ID, char *info, ifield *Next);
     90  info_field(int X, int Y, int ID, char const *info, ifield *Next);
    9191  virtual void area(int &x1, int &y1, int &x2, int &y2, window_manager *wm);
    9292  virtual void draw_first(image *screen, window_manager *wm);
Note: See TracChangeset for help on using the changeset viewer.