]> git.lyx.org Git - features.git/commitdiff
using std::getline
authorAngus Leeming <leeming@lyx.org>
Thu, 2 May 2002 10:46:51 +0000 (10:46 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 2 May 2002 10:46:51 +0000 (10:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4113 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/filetools.C

index 09e5c2bf0bc2ede3cc20a20a7c3d08f07eaf7a0d..fd72e7450fd3270d1a389c704fdd9e3b417edabf 100644 (file)
@@ -67,6 +67,7 @@ using std::pair;
 using std::endl;
 using std::ifstream;
 using std::vector;
+using std::getline;
 
 extern string system_lyxdir;
 extern string build_lyxdir;
@@ -1043,7 +1044,7 @@ string const getExtFromContents(string const & filename)
                        break;
                }
 
-               std::getline(ifs, str);
+               getline(ifs, str);
                lyxerr[Debug::GRAPHICS] << "Scanstring: " << str << endl;
 
                string const stamp = str.substr(0,2);
@@ -1371,7 +1372,7 @@ string const readBB_from_PSFile(string const & file)
        std::ifstream is(file_.c_str());
        while (is) {
                string s;
-               std::getline(is,s);
+               getline(is,s);
                if (contains(s,"%%BoundingBox:") && !contains(s,"atend"))
                        return (frontStrip(s.substr(14)));
        }