2010-05-21 03:13:36 +02:00
|
|
|
#include "compat.h"
|
|
|
|
#include "main.h"
|
|
|
|
|
2011-07-26 21:51:56 +02:00
|
|
|
#ifndef AGI_PRE
|
|
|
|
#include <algorithm>
|
|
|
|
#endif
|
|
|
|
|
2010-05-21 03:13:36 +02:00
|
|
|
wxArrayString lagi_MRU_wxAS(const wxString &list) {
|
2011-07-26 21:51:56 +02:00
|
|
|
const agi::MRUManager::MRUListMap *map = config::mru->Get(STD_STR(list));
|
2010-05-21 03:13:36 +02:00
|
|
|
wxArrayString work;
|
2011-07-26 21:51:56 +02:00
|
|
|
work.reserve(map->size());
|
|
|
|
transform(map->begin(), map->end(), std::back_inserter(work), lagi_wxString);
|
2010-06-03 22:32:25 +02:00
|
|
|
return work;
|
2010-05-21 03:13:36 +02:00
|
|
|
}
|