Logo Search packages:      
Sourcecode: pan version File versions

void DataImpl::load_part ( const Quark g,
const Quark mid,
size_t  number,
size_t  lines,
Article::Part part 
) [private]

the contents of `part' are given up wholesale to our local GroupHeaders. As a side-effect, the value of `part' after this call is undefined. This is an ugly interface, but it's fast and only called by one client.

Definition at line 380 of file headers.cc.

References pan::Article::get_part(), and pan::Article::lines.

Referenced by xover_add().

   GroupHeaders * h = get_group_headers (group);
   Article * a (h->find_article (mid));

   pan_return_if_fail (a != NULL);

   Article::Part& old_part (a->get_part (number));
   if (old_part.empty()) {
       old_part.swap (new_part);
       a->lines += lines;

Generated by  Doxygen 1.6.0   Back to index