mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-12 13:41:34 +00:00
reorder methods
This commit is contained in:
parent
16c42f4491
commit
f959a6627b
@ -24,26 +24,6 @@ History::History()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void History::add(
|
|
||||||
const Glib::ustring & REQUEST,
|
|
||||||
const bool & UPDATE_MEMORY_INDEX
|
|
||||||
) {
|
|
||||||
memory.push_back(
|
|
||||||
{
|
|
||||||
REQUEST,
|
|
||||||
std::time(
|
|
||||||
nullptr
|
|
||||||
),
|
|
||||||
true
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
if (UPDATE_MEMORY_INDEX)
|
|
||||||
{
|
|
||||||
index = memory.size() - 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void History::refresh()
|
void History::refresh()
|
||||||
{
|
{
|
||||||
Memory match;
|
Memory match;
|
||||||
@ -63,6 +43,25 @@ void History::refresh()
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void History::add(
|
||||||
|
const Glib::ustring & REQUEST,
|
||||||
|
const bool & UPDATE_MEMORY_INDEX
|
||||||
|
) {
|
||||||
|
memory.push_back(
|
||||||
|
{
|
||||||
|
REQUEST,
|
||||||
|
std::time(
|
||||||
|
nullptr
|
||||||
|
),
|
||||||
|
true
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
if (UPDATE_MEMORY_INDEX)
|
||||||
|
{
|
||||||
|
index = memory.size() - 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool History::try_back(
|
bool History::try_back(
|
||||||
Memory & match,
|
Memory & match,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user