mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-03 08:07:58 +03:00
Implemented getCount(), getPosition() and setPosition()
Fixed IteratePrev() being wrong
This commit is contained in:
parent
21d41ce14b
commit
05fc960338
1 changed files with 4 additions and 6 deletions
|
@ -179,7 +179,7 @@ bool UList< type >::IteratePrev
|
|||
{
|
||||
m_at = m_at->prev;
|
||||
|
||||
if( m_at == this )
|
||||
if( m_at == &m_top )
|
||||
{
|
||||
m_at = NULL;
|
||||
return false;
|
||||
|
@ -306,8 +306,7 @@ int UList< type >::getCount
|
|||
)
|
||||
|
||||
{
|
||||
// FIXME: stub
|
||||
return 0;
|
||||
return m_count;
|
||||
}
|
||||
|
||||
template< typename type >
|
||||
|
@ -338,8 +337,7 @@ void *UList< type >::getPosition
|
|||
)
|
||||
|
||||
{
|
||||
// FIXME: stub
|
||||
return NULL;
|
||||
return (void*)m_at;
|
||||
}
|
||||
|
||||
template< typename type >
|
||||
|
@ -349,7 +347,7 @@ void UList< type >::setPosition
|
|||
)
|
||||
|
||||
{
|
||||
// FIXME: stub
|
||||
m_at = static_cast<UListItem<type>*>(pos);
|
||||
}
|
||||
|
||||
#endif /* __ULIST_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue