add some missing typenames

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3886 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2002-04-03 07:04:28 +00:00
parent 8aca784469
commit 3c21de4132
5 changed files with 22 additions and 10 deletions

View File

@ -6,6 +6,9 @@
2002-04-01 Lars Gullik Bjønnes <larsbj@birdstep.com>
* reLyX/Makefile.am (install-data-local): fix variable usage
(uninstall-local): ditto
* CREDITS: add Claus Hindsgaul
2002-03-28 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>

View File

@ -1,10 +1,14 @@
2002-04-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
* ShareContainer.h: add a couple of missing typenames.
2002-04-02 Angus Leeming <a.leeming@ic.ac.uk>
* lyxrc.C (getDescription): use _() correctly rather than N_().
2002-03-28 Herbert Voss <voss@lyx.org>
* lyxlength.C: compatibility stuff for < 1.1.6fix4 and
* lyxlength.C: compatibility stuff for < 1.1.6fix4 and
"old" 1.2.0 files which use c%, l%, p% t% instead of text%, ...
2002-04-02 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
@ -50,7 +54,7 @@
2002-03-27 Herbert Voss <voss@lyx.org>
* lengthcommon.C: change c%, l%, p% t% to col%, line%, page%
and text%
and text%
2002-03-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>

View File

@ -27,9 +27,9 @@ public:
value_type
get(Share const & ps) const {
// First see if we already have this ps in the container
Params::iterator it = std::find_if(params.begin(),
params.end(),
isEqual(ps));
typename Params::iterator it = std::find_if(params.begin(),
params.end(),
isEqual(ps));
value_type tmp;
if (it == params.end()) {
// ok we don't have it so we should
@ -73,9 +73,9 @@ private:
optimizaton.
*/
void clean() const {
Params::iterator it = std::remove_if(params.begin(),
params.end(),
isUnique());
typename Params::iterator it = std::remove_if(params.begin(),
params.end(),
isUnique());
params.erase(it, params.end());
}

View File

@ -1,3 +1,7 @@
2002-04-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
* FormCharacter.C (findPos): add a missing typename
2002-04-02 Angus Leeming <a.leeming@ic.ac.uk>
* FeedbackController.C:
@ -20,7 +24,7 @@
* xforms_helpers.h:
* FormGraphics.C: change c%, l%, p% t% to col%, line%, page%
and text%
and text%
2002-03-27 Angus Leeming <a.leeming@ic.ac.uk>

View File

@ -143,7 +143,8 @@ namespace {
template<class A>
typename vector<A>::size_type findPos(vector<A> const & vec, A const & val)
{
vector<A>::const_iterator it = find(vec.begin(), vec.end(), val);
typename vector<A>::const_iterator it =
find(vec.begin(), vec.end(), val);
if (it == vec.end())
return 0;
return it - vec.begin();