Fix compilation with gcc 4.3

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22858 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2008-02-08 09:41:07 +00:00
parent f0cb17f26f
commit c5a0460f3c
4 changed files with 6 additions and 4 deletions

View File

@ -30,7 +30,7 @@
using std::string;
using std::distance;
using std::find_if;
namespace lyx {

View File

@ -75,7 +75,7 @@ int ControlRef::getBufferNum() const
vector<string> buffers = theBufferList().getFileNames();
string const name = kernel().buffer().fileName();
vector<string>::const_iterator cit =
find(buffers.begin(), buffers.end(), name);
std::find(buffers.begin(), buffers.end(), name);
if (cit == buffers.end())
return 0;
return int(cit - buffers.begin());

View File

@ -109,7 +109,7 @@ namespace {
// returns the number of the string s in the vector v
int getItemNo(vector<string> v, string const & s) {
vector<string>::const_iterator cit =
find(v.begin(), v.end(), s);
std::find(v.begin(), v.end(), s);
return (cit != v.end()) ? int(cit - v.begin()) : 0;
}

View File

@ -186,7 +186,9 @@ What's new
* BUILD/INSTALLATION:
- new script postats.py used to generate translation statistics for the main
- New script postats.py used to generate translation statistics for the main
page.
- Dutch dictionary now downloads
- Fix compilation with gcc 4.3 (soon to be released)