Ignore:
Timestamp:
Mar 2, 2008, 12:29:06 AM (14 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/include/console.hpp

    r2 r39  
    1414  public :
    1515
    16   console(window_manager *WM, JCFont *font, int width, int height, char *Name);
     16  console(window_manager *WM, JCFont *font, int width, int height, char const *Name);
    1717  int showing() { return con_win!=NULL; }
    1818  void show();
     
    2626  int wy() { return con_win->y1(); }
    2727  void draw_cursor();
    28   void put_string(char *st);
     28  void put_string(char const *st);
    2929  void draw_char(int x, int y, char ch);
    3030  void toggle() { if (con_win) hide(); else show(); }
    31   void print_f(const char *format, ...);
     31  void print_f(char const *format, ...);
    3232  ~console();
    3333} ;
     
    3737  char shcmd[300];
    3838  public :
    39   shell_term(window_manager *WM, JCFont *font, int width, int height, char *Name);
     39  shell_term(window_manager *WM, JCFont *font, int width, int height, char const *Name);
    4040  virtual ~shell_term() {};
    4141  int handle_event(event &ev, window_manager *wm);
    4242  virtual void prompt();
    43   virtual void execute(char *st);
     43  virtual void execute(char const *st);
    4444} ;
    4545
Note: See TracChangeset for help on using the changeset viewer.