Changeset a978dfc79bb261749d8bab1fbbb61d554a3f6418

Show
Ignore:
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:
3 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5300929 ra978dfc  
     12008-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 
    1102008-06-22  Armin Burgmeier  <armin@0x539.de> 
    211 
  • src/operations/documentinfostorage.cpp

    r5300929 ra978dfc  
    7979                                info.encoding = text->get_content(); 
    8080                } 
     81 
     82                return root; 
    8183        } 
    8284 
     
    165167                        xmlpp::Element* child = root->add_child("document"); 
    166168 
    167                         xmlpp::Element* root_child = root->add_child("root"); 
     169                        xmlpp::Element* root_child = child->add_child("root"); 
    168170                        root_child->set_child_text(iter->first); 
    169171 
  • src/operations/operation-open.cpp

    r883ac1c ra978dfc  
    250250        const char to_find[] = { '\r', '\n', '\0' }; 
    251251 
     252        /* TODO: Write directly into the buffer here, 
     253         * instead of memmoving stuff. */ 
    252254        while( (pos = std::find_first_of<char*>(prev, outbuf, 
    253255                to_find, to_find + sizeof(to_find))) != outbuf)