|
|
| version 1.152.2.19.2.1, 2003/03/18 15:14:19 | version 1.152.2.19.2.3, 2003/03/24 13:43:41 |
|---|---|
| Line 72 public: | Line 72 public: |
| buf[used=0]=0; | buf[used=0]=0; |
| } | } |
| const char* get_and_reset() { | const char* get_and_reset() { |
| const char* result(new char[used+1]); | const char* result=(PointerFreeGC)new char[used+1]; |
| memcpy(result.get(), buf, used+1); | memcpy(result, buf, used+1); |
| reset(); | reset(); |
| return result; | return result; |
| } | } |
| Line 130 const char* xmlGenericErrors() { | Line 130 const char* xmlGenericErrors() { |
| XML_Generic_error_info *p=xml_generic_error_info(thread_id); | XML_Generic_error_info *p=xml_generic_error_info(thread_id); |
| if(!p) // no errors for our thread_id registered | if(!p) // no errors for our thread_id registered |
| return CharPtr(0); | return 0; |
| return p->get_and_reset(); | return p->get_and_reset(); |
| } | } |