~ubuntu-branches/ubuntu/hardy/mysql-dfsg-5.0/hardy-updates

« back to all changes in this revision

Viewing changes to extra/yassl/taocrypt/mySTL/list.hpp

  • Committer: Bazaar Package Importer
  • Author(s): sean finney
  • Date: 2007-05-13 12:32:45 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20070513123245-8c3l187dk34cz2ar
Tags: 5.0.41-2
the previous "translation changes" inadvertently introduced unrelated
changes in the package control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
template<typename T> 
232
232
void list<T>::pop_front()
233
233
{
234
 
    node* local_front = head_;
 
234
    node* front = head_;
235
235
 
236
236
    if (head_ == 0)
237
237
        return;
241
241
        head_ = head_->next_;
242
242
        head_->prev_ = 0;
243
243
    }
244
 
    destroy(local_front);
245
 
    FreeMemory(local_front);
 
244
    destroy(front);
 
245
    FreeMemory(front);
246
246
    --sz_;
247
247
}
248
248
 
303
303
template<typename T>
304
304
typename list<T>::node* list<T>::look_up(T t)
305
305
{
306
 
    node* local_list = head_;
307
 
 
308
 
    if (local_list == 0) return 0;
309
 
 
310
 
    for (; local_list; local_list = local_list->next_)
311
 
        if (local_list->value_ == t)
312
 
            return local_list;
 
306
    node* list = head_;
 
307
 
 
308
    if (list == 0) return 0;
 
309
 
 
310
    for (; list; list = list->next_)
 
311
        if (list->value_ == t)
 
312
            return list;
313
313
 
314
314
    return 0;
315
315
}