a better(?) compilation fix for cxx

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3266 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2001-12-26 14:45:16 +00:00
parent 65ec1c0437
commit 7f0644416b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-12-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* tabular_funcs.C: use a "using std::getline" instead of the
previous fix from Angus (necessary for cxx + lyxstring)
2001-12-24 Juergen Vigna <jug@sad.it>
* BufferView_pimpl.C (tripleClick): fixed for InsetText.

View File

@ -22,6 +22,7 @@
#include "support/LIstream.h"
using std::istream;
using std::getline;
// Perfect case for a template... (Lgb)
// or perhaps not...
@ -229,7 +230,7 @@ void l_getline(istream & is, string & str)
{
str.erase();
while (str.empty()) {
std::getline(is, str);
getline(is, str);
if (!str.empty() && str[str.length() - 1] == '\r')
str.erase(str.length() - 1);
}