mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-14 01:22:33 +00:00
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:
parent
f0cb17f26f
commit
c5a0460f3c
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
using std::distance;
|
using std::distance;
|
||||||
|
using std::find_if;
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ int ControlRef::getBufferNum() const
|
|||||||
vector<string> buffers = theBufferList().getFileNames();
|
vector<string> buffers = theBufferList().getFileNames();
|
||||||
string const name = kernel().buffer().fileName();
|
string const name = kernel().buffer().fileName();
|
||||||
vector<string>::const_iterator cit =
|
vector<string>::const_iterator cit =
|
||||||
find(buffers.begin(), buffers.end(), name);
|
std::find(buffers.begin(), buffers.end(), name);
|
||||||
if (cit == buffers.end())
|
if (cit == buffers.end())
|
||||||
return 0;
|
return 0;
|
||||||
return int(cit - buffers.begin());
|
return int(cit - buffers.begin());
|
||||||
|
@ -109,7 +109,7 @@ namespace {
|
|||||||
// returns the number of the string s in the vector v
|
// returns the number of the string s in the vector v
|
||||||
int getItemNo(vector<string> v, string const & s) {
|
int getItemNo(vector<string> v, string const & s) {
|
||||||
vector<string>::const_iterator cit =
|
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;
|
return (cit != v.end()) ? int(cit - v.begin()) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -186,7 +186,9 @@ What's new
|
|||||||
|
|
||||||
* BUILD/INSTALLATION:
|
* 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.
|
page.
|
||||||
|
|
||||||
- Dutch dictionary now downloads
|
- Dutch dictionary now downloads
|
||||||
|
|
||||||
|
- Fix compilation with gcc 4.3 (soon to be released)
|
||||||
|
Loading…
Reference in New Issue
Block a user