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/property.hpp

    r2 r39  
    66{
    77  property *first;
    8   property *find(char *name);
     8  property *find(char const *name);
    99  public :
    1010  property_manager() { first=0; }
    11   void load(char *filename);
    12   void save(char *filename);
     11  void load(char const *filename);
     12  void save(char const *filename);
    1313 
    14   int getd(char *name, int def) { return (int)get(name,def); }
    15   int get(char *name, int def);
    16   char  *get(char *name, char *def);
     14  int getd(char const *name, int def) { return (int)get(name,def); }
     15  int get(char const *name, int def);
     16  char const *get(char const *name, char const *def);
    1717
    18   void setd(char *name, int def) { set(name,def); }
    19   void set(char *name, double def);
    20   void set(char *name, char *def);
     18  void setd(char const *name, int def) { set(name,def); }
     19  void set(char const *name, double def);
     20  void set(char const *name, char const *def);
    2121  ~property_manager();
    2222} ;
Note: See TracChangeset for help on using the changeset viewer.