From 4a704b1700247b0d63575a8875309d827a99595c Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 18 Apr 2001 10:20:17 +0000 Subject: [PATCH] compilation fixes git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1936 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 6 ++++++ src/lyxfunc.C | 8 ++++---- src/minibuffer.C | 7 ++++--- src/minibuffer.h | 10 +++++----- 4 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 0f17fdf804..d079dd3c05 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2001-04-18 Jean-Marc Lasgouttes + + * lyxfunc.C (Dispatch): + * minibuffer.C: + * minibuffer.h: add a few std:: qualifiers + 2001-04-17 Lars Gullik Bjønnes * minibuffer.[Ch]: reimplement so that commands is initiated and diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 210d46f49a..26cc837da1 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -809,10 +809,10 @@ string const LyXFunc::Dispatch(int ac, // --- Misc ------------------------------------------- case LFUN_EXEC_COMMAND: { - vector allCmds; - transform(lyxaction.func_begin(), lyxaction.func_end(), - back_inserter(allCmds), lyx::firster()); - static vector hist; + std::vector allCmds; + std::transform(lyxaction.func_begin(), lyxaction.func_end(), + std::back_inserter(allCmds), lyx::firster()); + static std::vector hist; owner->getMiniBuffer()->getString(MiniBuffer::nospaces, allCmds, hist); } diff --git a/src/minibuffer.C b/src/minibuffer.C index c6171fd541..5e1f324423 100644 --- a/src/minibuffer.C +++ b/src/minibuffer.C @@ -28,6 +28,7 @@ using std::endl; using SigC::slot; +using std::vector; extern LyXAction lyxaction; @@ -121,7 +122,7 @@ int MiniBuffer::peek_event(FL_OBJECT * ob, int event, int key) vector comp; lyx::copy_if(completion_.begin(), completion_.end(), - back_inserter(comp), prefix(input)); + std::back_inserter(comp), prefix(input)); if (comp.empty()) { // No matches @@ -144,7 +145,7 @@ int MiniBuffer::peek_event(FL_OBJECT * ob, int event, int key) vector 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); @@ -157,7 +158,7 @@ int MiniBuffer::peek_event(FL_OBJECT * ob, int event, int key) // How should the possible matches // be visualized? std::copy(comp.begin(), comp.end(), - ostream_iterator(cerr, "\n")); + std::ostream_iterator(std::cerr, "\n")); } return 1; } diff --git a/src/minibuffer.h b/src/minibuffer.h index b71126c5d0..eb75794ecf 100644 --- a/src/minibuffer.h +++ b/src/minibuffer.h @@ -44,8 +44,8 @@ public: emitted. */ void getString(State space, - vector const & completion, - vector & history); + std::vector const & completion, + std::vector & history); /// void redraw(); /// @@ -88,11 +88,11 @@ private: /// FL_OBJECT * the_buffer; /// - vector completion_; + std::vector completion_; /// - vector * history_; + std::vector * history_; /// - vector::iterator hist_iter; + std::vector::iterator hist_iter; /// State state_; }; -- 2.39.2