some work on dependency injection
git-svn-id: svn://ttmath.org/publicrep/winix/branches/0.7.x@1147 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008-2014, Tomasz Sowa
|
||||
* Copyright (c) 2008-2018, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "templates.h"
|
||||
#include "core/request.h"
|
||||
#include "core/version.h"
|
||||
#include "core/plugin.h"
|
||||
|
||||
|
||||
namespace Winix
|
||||
{
|
||||
@@ -72,20 +72,20 @@ static size_t sys_plugin_index = 0;
|
||||
void sys_plugin_tab(Info & i)
|
||||
{
|
||||
sys_plugin_index = i.iter;
|
||||
i.res = sys_plugin_index < plugin.GetPlugins()->size();
|
||||
i.res = sys_plugin_index < plugin->GetPlugins()->size();
|
||||
}
|
||||
|
||||
void sys_plugin_tab_has_name(Info & i)
|
||||
{
|
||||
if( sys_plugin_index < plugin.GetPlugins()->size() )
|
||||
i.res = (*plugin.GetPlugins())[sys_plugin_index].plugin_name != 0;
|
||||
if( sys_plugin_index < plugin->GetPlugins()->size() )
|
||||
i.res = (*plugin->GetPlugins())[sys_plugin_index].plugin_name != 0;
|
||||
}
|
||||
|
||||
void sys_plugin_tab_name(Info & i)
|
||||
{
|
||||
if( sys_plugin_index < plugin.GetPlugins()->size() )
|
||||
if( sys_plugin_index < plugin->GetPlugins()->size() )
|
||||
{
|
||||
const wchar_t * name = (*plugin.GetPlugins())[sys_plugin_index].plugin_name;
|
||||
const wchar_t * name = (*plugin->GetPlugins())[sys_plugin_index].plugin_name;
|
||||
|
||||
if( name )
|
||||
i.out << name;
|
||||
|
Reference in New Issue
Block a user