… | |
… | |
178 | { |
178 | { |
179 | ++refcnt (); |
179 | ++refcnt (); |
180 | } |
180 | } |
181 | |
181 | |
182 | explicit shstr (const char *str) |
182 | explicit shstr (const char *str) |
183 | : shstr_tmp (0, is_constant (str) && !str ? null () : intern (str)) |
183 | : shstr_tmp (0, ecb_is_constant (str) && !str ? null () : intern (str)) |
184 | { |
184 | { |
185 | } |
185 | } |
186 | |
186 | |
187 | ~shstr () |
187 | ~shstr () |
188 | { |
188 | { |
… | |
… | |
210 | |
210 | |
211 | // shstr_tmp doesn't have this one |
211 | // shstr_tmp doesn't have this one |
212 | shstr &operator =(const char *str) |
212 | shstr &operator =(const char *str) |
213 | { |
213 | { |
214 | --refcnt (); |
214 | --refcnt (); |
215 | s = is_constant (str) && !str ? null () : intern (str); |
215 | s = ecb_is_constant (str) && !str ? null () : intern (str); |
216 | |
216 | |
217 | return *this; |
217 | return *this; |
218 | } |
218 | } |
219 | }; |
219 | }; |
220 | |
220 | |