Skip to content
Browse files

eliminate annoying 'conversion to NULL' warnings due to implicit seco…

…nd parameter for get()

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
  • Loading branch information...
1 parent 87ded8d commit e0d36c62dfb4b442c39bd7065666584b0db482ab @tycho committed Mar 25, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 source/crisscross/llist.cpp
View
8 source/crisscross/llist.cpp
@@ -45,17 +45,21 @@ namespace CrissCross
m_previousIndex(-1),
m_numItems(0)
{
+ LListNode <T> *li;
for (size_t i = 0; i < source.size(); i++) {
- insert_back(source.get(i));
+ li = source.getItem(i);
+ insert_back(li->m_data);
}
}
template <class T>
LList <T> &LList <T>::operator =(const LList <T> &source)
{
+ LListNode <T> *li;
empty();
for (size_t i = 0; i < source.size(); i++) {
- insert_back(source.get(i));
+ li = source.getItem(i);
+ insert_back(li->m_data);
}
return *this;

0 comments on commit e0d36c6

Please sign in to comment.
Something went wrong with that request. Please try again.