mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-04 08:37: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;
|
m_at = m_at->prev;
|
||||||
|
|
||||||
if( m_at == this )
|
if( m_at == &m_top )
|
||||||
{
|
{
|
||||||
m_at = NULL;
|
m_at = NULL;
|
||||||
return false;
|
return false;
|
||||||
|
@ -306,8 +306,7 @@ int UList< type >::getCount
|
||||||
)
|
)
|
||||||
|
|
||||||
{
|
{
|
||||||
// FIXME: stub
|
return m_count;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename type >
|
template< typename type >
|
||||||
|
@ -338,8 +337,7 @@ void *UList< type >::getPosition
|
||||||
)
|
)
|
||||||
|
|
||||||
{
|
{
|
||||||
// FIXME: stub
|
return (void*)m_at;
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename type >
|
template< typename type >
|
||||||
|
@ -349,7 +347,7 @@ void UList< type >::setPosition
|
||||||
)
|
)
|
||||||
|
|
||||||
{
|
{
|
||||||
// FIXME: stub
|
m_at = static_cast<UListItem<type>*>(pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __ULIST_H__ */
|
#endif /* __ULIST_H__ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue