From 5ba23fae32f833afa1251c6f5ebf5b0d88e084ed Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Thu, 2 May 2002 08:45:22 +0000 Subject: [PATCH] Compile fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4111 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/ChangeLog | 4 ++++ src/support/filetools.C | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 26c96af68e..0987b05c98 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,7 @@ +2002-05-02 Herbert Voss + + * filetools.C: getline -> std::getline. + 2002-05-02 Lars Gullik Bjønnes * lyxstring.C (operator>>): try a new version of the operator>> diff --git a/src/support/filetools.C b/src/support/filetools.C index 98272b0e0e..09e5c2bf0b 100644 --- a/src/support/filetools.C +++ b/src/support/filetools.C @@ -1043,7 +1043,7 @@ string const getExtFromContents(string const & filename) break; } - getline(ifs, str); + std::getline(ifs, str); lyxerr[Debug::GRAPHICS] << "Scanstring: " << str << endl; string const stamp = str.substr(0,2); @@ -1371,7 +1371,7 @@ string const readBB_from_PSFile(string const & file) std::ifstream is(file_.c_str()); while (is) { string s; - getline(is,s); + std::getline(is,s); if (contains(s,"%%BoundingBox:") && !contains(s,"atend")) return (frontStrip(s.substr(14))); } -- 2.39.2