Squash warning from my compiler.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3835 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-03-26 12:12:29 +00:00
parent 93fb0890fa
commit a351157fc6
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
* ControlRef.C (getBufferNum): squash warning message.
2002-03-22 Angus Leeming <a.leeming@ic.ac.uk> 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
* ControlBibtex.C (Browse): * ControlBibtex.C (Browse):

View File

@ -85,7 +85,7 @@ int ControlRef::getBufferNum() const
find(buffers.begin(), buffers.end(), name); find(buffers.begin(), buffers.end(), name);
if (cit == buffers.end()) if (cit == buffers.end())
return 0; return 0;
return cit - buffers.begin(); return int(cit - buffers.begin());
} }
string const ControlRef::getBufferName(int num) const string const ControlRef::getBufferName(int num) const