ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/shstr.h
(Generate patch)

Comparing deliantra/server/include/shstr.h (file contents):
Revision 1.10 by root, Tue Sep 12 18:15:34 2006 UTC vs.
Revision 1.11 by root, Thu Sep 14 21:16:12 2006 UTC

109 explicit shstr_cmp (const char *s) 109 explicit shstr_cmp (const char *s)
110 : s (shstr::find (s)) 110 : s (shstr::find (s))
111 { 111 {
112 } 112 }
113 113
114 shstr_cmp (const shstr_cmp &sh)
115 : s (sh.s)
116 {
117 }
118
119 shstr_cmp &operator =(const shstr_cmp sh) { s = sh.s; return *this; }
114 operator const char *() const { return s; } 120 operator const char *() const { return s; }
115}; 121};
116 122
117inline bool operator ==(const shstr_cmp &a, const shstr &b) 123inline bool operator ==(const shstr_cmp &a, const shstr &b)
118{ 124{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines