mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 17:12:07 +00:00
Formatting fixup from 12601cc6e291
This commit is contained in:
parent
d05e1ff6ee
commit
ba59cba052
@ -314,8 +314,8 @@ static std::string describe_status_verbose(const addon_tracking_info& state)
|
|||||||
return colorify_addon_state_string(s, state);
|
return colorify_addon_state_string(s, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Fnc>
|
template<typename Fcn>
|
||||||
void taddon_list::init_sorting_option(generator_sort_array& order_funcs, Fnc filter_on)
|
void taddon_list::init_sorting_option(generator_sort_array& order_funcs, Fcn filter_on)
|
||||||
{
|
{
|
||||||
order_funcs[0] = [this, filter_on](unsigned i1, unsigned i2) {
|
order_funcs[0] = [this, filter_on](unsigned i1, unsigned i2) {
|
||||||
return filter_on(addon_at(ids_[i1], addons_)) < filter_on(addon_at(ids_[i2], addons_));
|
return filter_on(addon_at(ids_[i1], addons_)) < filter_on(addon_at(ids_[i2], addons_));
|
||||||
|
@ -161,8 +161,8 @@ void tgame_load::pre_show(twindow& window)
|
|||||||
display_savegame(window);
|
display_savegame(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Fnc>
|
template<typename Fcn>
|
||||||
void tgame_load::init_sorting_option(generator_sort_array& order_funcs, Fnc filter_on)
|
void tgame_load::init_sorting_option(generator_sort_array& order_funcs, Fcn filter_on)
|
||||||
{
|
{
|
||||||
order_funcs[0] = [this, filter_on](unsigned i1, unsigned i2) {
|
order_funcs[0] = [this, filter_on](unsigned i1, unsigned i2) {
|
||||||
return filter_on(games_[i1]) < filter_on(games_[i2]);
|
return filter_on(games_[i1]) < filter_on(games_[i2]);
|
||||||
|
@ -70,8 +70,8 @@ private:
|
|||||||
void evaluate_summary_string(std::stringstream& str,
|
void evaluate_summary_string(std::stringstream& str,
|
||||||
const config& cfg_summary);
|
const config& cfg_summary);
|
||||||
|
|
||||||
template<typename Fnc>
|
template<typename Fcn>
|
||||||
void init_sorting_option(generator_sort_array& order_funcs, Fnc filter_on);
|
void init_sorting_option(generator_sort_array& order_funcs, Fcn filter_on);
|
||||||
|
|
||||||
tfield_text* txtFilter_;
|
tfield_text* txtFilter_;
|
||||||
tfield_bool* chk_change_difficulty_;
|
tfield_bool* chk_change_difficulty_;
|
||||||
|
@ -87,8 +87,8 @@ tunit_create::tunit_create()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Fnc>
|
template<typename Fcn>
|
||||||
void tunit_create::init_sorting_option(generator_sort_array& order_funcs, Fnc filter_on)
|
void tunit_create::init_sorting_option(generator_sort_array& order_funcs, Fcn filter_on)
|
||||||
{
|
{
|
||||||
order_funcs[0] = [this, filter_on](unsigned i1, unsigned i2) {
|
order_funcs[0] = [this, filter_on](unsigned i1, unsigned i2) {
|
||||||
return filter_on((*units_[i1])) < filter_on((*units_[i2]));
|
return filter_on((*units_[i1])) < filter_on((*units_[i2]));
|
||||||
|
@ -69,8 +69,8 @@ private:
|
|||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
template<typename Fnc>
|
template<typename Fcn>
|
||||||
void init_sorting_option(generator_sort_array& order_funcs, Fnc filter_on);
|
void init_sorting_option(generator_sort_array& order_funcs, Fcn filter_on);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
@ -111,8 +111,8 @@ static std::string format_cost_string(int unit_recall_cost, const int team_recal
|
|||||||
return str.str();
|
return str.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Fnc>
|
template<typename Fcn>
|
||||||
void tunit_recall::init_sorting_option(generator_sort_array& order_funcs, Fnc filter_on)
|
void tunit_recall::init_sorting_option(generator_sort_array& order_funcs, Fcn filter_on)
|
||||||
{
|
{
|
||||||
order_funcs[0] = [this, filter_on](unsigned i1, unsigned i2) {
|
order_funcs[0] = [this, filter_on](unsigned i1, unsigned i2) {
|
||||||
return filter_on((*recall_list_)[i1]) < filter_on((*recall_list_)[i2]);
|
return filter_on((*recall_list_)[i1]) < filter_on((*recall_list_)[i2]);
|
||||||
|
@ -54,8 +54,8 @@ private:
|
|||||||
std::vector<std::string> filter_options_;
|
std::vector<std::string> filter_options_;
|
||||||
std::vector<std::string> last_words_;
|
std::vector<std::string> last_words_;
|
||||||
|
|
||||||
template<typename T>
|
template<typename Fcn>
|
||||||
void init_sorting_option(generator_sort_array& order_funcs, T filter_on);
|
void init_sorting_option(generator_sort_array& order_funcs, Fcn filter_on);
|
||||||
|
|
||||||
/** Callbacks */
|
/** Callbacks */
|
||||||
void list_item_clicked(twindow& window);
|
void list_item_clicked(twindow& window);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user