mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
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:
parent
65ec1c0437
commit
7f0644416b
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user