+2001-04-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * lyxfunc.C (Dispatch):
+ * minibuffer.C:
+ * minibuffer.h: add a few std:: qualifiers
+
2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
* minibuffer.[Ch]: reimplement so that commands is initiated and
// --- Misc -------------------------------------------
case LFUN_EXEC_COMMAND:
{
- vector<string> allCmds;
- transform(lyxaction.func_begin(), lyxaction.func_end(),
- back_inserter(allCmds), lyx::firster());
- static vector<string> hist;
+ std::vector<string> allCmds;
+ std::transform(lyxaction.func_begin(), lyxaction.func_end(),
+ std::back_inserter(allCmds), lyx::firster());
+ static std::vector<string> hist;
owner->getMiniBuffer()->getString(MiniBuffer::nospaces,
allCmds, hist);
}
using std::endl;
using SigC::slot;
+using std::vector;
extern LyXAction lyxaction;
vector<string> comp;
lyx::copy_if(completion_.begin(),
completion_.end(),
- back_inserter(comp), prefix(input));
+ std::back_inserter(comp), prefix(input));
if (comp.empty()) {
// No matches
vector<string> vtmp;
lyx::copy_if(comp.begin(),
comp.end(),
- back_inserter(vtmp),
+ std::back_inserter(vtmp),
prefix(test));
if (vtmp.size() != comp.size()) {
test.erase(test.length() - 1);
// How should the possible matches
// be visualized?
std::copy(comp.begin(), comp.end(),
- ostream_iterator<string>(cerr, "\n"));
+ std::ostream_iterator<string>(std::cerr, "\n"));
}
return 1;
}
emitted.
*/
void getString(State space,
- vector<string> const & completion,
- vector<string> & history);
+ std::vector<string> const & completion,
+ std::vector<string> & history);
///
void redraw();
///
///
FL_OBJECT * the_buffer;
///
- vector<string> completion_;
+ std::vector<string> completion_;
///
- vector<string> * history_;
+ std::vector<string> * history_;
///
- vector<string>::iterator hist_iter;
+ std::vector<string>::iterator hist_iter;
///
State state_;
};