the first part of reimplementing has been done
now we have app object and singletons are only: log logn plugin and app git-svn-id: svn://ttmath.org/publicrep/winix/trunk@628 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
|
||||
#include "templates.h"
|
||||
#include "../core/lastcontainer.h"
|
||||
#include "../core/data.h"
|
||||
#include "../core/request.h"
|
||||
#include "../core/misc.h"
|
||||
|
||||
@@ -24,13 +23,13 @@ static LastContainer::Iterator last_iterator;
|
||||
|
||||
bool last_init()
|
||||
{
|
||||
if( last_reqid != request.id )
|
||||
if( last_reqid != request->id )
|
||||
{
|
||||
last_reqid = request.id;
|
||||
last_iterator = data.last.Begin();
|
||||
last_reqid = request->id;
|
||||
last_iterator = system->users.last.Begin();
|
||||
}
|
||||
|
||||
return last_iterator != data.last.End();
|
||||
return last_iterator != system->users.last.End();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +38,10 @@ void last_tab(Info & i)
|
||||
{
|
||||
last_init();
|
||||
|
||||
if( i.iter != 0 && last_iterator != data.last.End() )
|
||||
if( i.iter != 0 && last_iterator != system->users.last.End() )
|
||||
++last_iterator;
|
||||
|
||||
i.res = last_iterator != data.last.End();
|
||||
i.res = last_iterator != system->users.last.End();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user