Changeset a978dfc79bb261749d8bab1fbbb61d554a3f6418
- Timestamp:
- 06/22/08 23:41:25 (5 years ago)
- Author:
- Armin Burgmeier <armin@…>
- Parents:
- 5cfffd934afa1f4352f56daee3be948e72de8685
- Children:
- 8b020ddf395e7133fa3900592b83f95864479578
- git-committer:
- Armin Burgmeier <armin@arbur.net> / 2008-06-22T23:41:25Z+0200
- Message:
-
Fixed a missing return value in load_document in documentinfostorage.cpp
2008-06-22 Armin Burgmeier <armin@…>
- src/operations/documentinfostorage.cpp: Added return value for
load_document, fixed storage of "root" node (was in top-level
<documents> instead of <document>),
- src/operations/operation-open.cpp: Added a TODO comment to remmove
memmove.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5300929
|
ra978dfc
|
|
| | 1 | 2008-06-22 Armin Burgmeier <armin@0x539.de> |
| | 2 | |
| | 3 | * src/operations/documentinfostorage.cpp: Added return value for |
| | 4 | load_document, fixed storage of "root" node (was in top-level |
| | 5 | <documents> instead of <document>), |
| | 6 | |
| | 7 | * src/operations/operation-open.cpp: Added a TODO comment to remmove |
| | 8 | memmove. |
| | 9 | |
| 1 | 10 | 2008-06-22 Armin Burgmeier <armin@0x539.de> |
| 2 | 11 | |
-
|
r5300929
|
ra978dfc
|
|
| 79 | 79 | info.encoding = text->get_content(); |
| 80 | 80 | } |
| | 81 | |
| | 82 | return root; |
| 81 | 83 | } |
| 82 | 84 | |
| … |
… |
|
| 165 | 167 | xmlpp::Element* child = root->add_child("document"); |
| 166 | 168 | |
| 167 | | xmlpp::Element* root_child = root->add_child("root"); |
| | 169 | xmlpp::Element* root_child = child->add_child("root"); |
| 168 | 170 | root_child->set_child_text(iter->first); |
| 169 | 171 | |
-
|
r883ac1c
|
ra978dfc
|
|
| 250 | 250 | const char to_find[] = { '\r', '\n', '\0' }; |
| 251 | 251 | |
| | 252 | /* TODO: Write directly into the buffer here, |
| | 253 | * instead of memmoving stuff. */ |
| 252 | 254 | while( (pos = std::find_first_of<char*>(prev, outbuf, |
| 253 | 255 | to_find, to_find + sizeof(to_find))) != outbuf) |