- LastFiles::const_iterator lfit = lastfiles->begin();
- LastFiles::const_iterator end = lastfiles->end();
-
- for (; lfit != end && ii < 10; ++lfit, ++ii) {
- string const label = tostr(ii) + ". "
- + MakeDisplayPath((*lfit), 30)
- + '|' + tostr(ii);
- int const action = lyxaction.
- getPseudoAction(LFUN_FILE_OPEN,
- (*lfit));
- tomenu.add(MenuItem(MenuItem::Command, label, action), view);
+
+ for (; lfit != lf.end() && ii < 10; ++lfit, ++ii) {
+ string const label = convert<string>(ii) + ". "
+ + makeDisplayPath((*lfit), 30)
+ + '|' + convert<string>(ii);
+ tomenu.add(MenuItem(MenuItem::Command, label, FuncRequest(LFUN_FILE_OPEN, (*lfit))), view);