fixed: find_ticket_value (in plugins/ticket/templates.cpp)
should find the first item (can be more than one item with the same 'param') fixed: added sorting tickets params in ReadTicketParams() (in plugins/ticket/ticketinfo.cpp) fixed: plugin should have its own 'PluginInfo info' struct a plugin's function can call another plugin's functions added: removing tickets files/images added: removing threads changed: rm function will call WINIX_FILE_REMOVED now when deleting directories git-svn-id: svn://ttmath.org/publicrep/winix/trunk@710 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
namespace Ticket
|
||||
@@ -27,7 +28,6 @@ struct Ticket
|
||||
|
||||
void Clear()
|
||||
{
|
||||
// !! what about file_id?
|
||||
param = 0;
|
||||
int_value = 0;
|
||||
str_value.clear();
|
||||
@@ -52,6 +52,19 @@ struct Ticket
|
||||
sort_id = 0;
|
||||
}
|
||||
|
||||
struct Sort
|
||||
{
|
||||
bool operator()(const TicketParam & par1, const TicketParam & par2)
|
||||
{
|
||||
return par1.param < par2.param;
|
||||
}
|
||||
};
|
||||
|
||||
void SortParTab()
|
||||
{
|
||||
std::sort(par_tab.begin(), par_tab.end(), Sort());
|
||||
}
|
||||
|
||||
|
||||
Ticket()
|
||||
{
|
||||
|
Reference in New Issue
Block a user