STYLE: accept std::string for ISstream::getLine

This commit is contained in:
Mark Olesen
2018-11-03 17:09:23 +01:00
parent fd54070c3a
commit aa0f2e0d9b
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ public:
inline int peek(); inline int peek();
//- Raw, low-level getline into a string function. //- Raw, low-level getline into a string function.
inline ISstream& getLine(string& str); inline ISstream& getLine(std::string& str);
//- Raw, low-level putback character function. //- Raw, low-level putback character function.
inline ISstream& putback(const char c); inline ISstream& putback(const char c);

View File

@ -72,7 +72,7 @@ inline int Foam::ISstream::peek()
} }
inline Foam::ISstream& Foam::ISstream::getLine(string& str) inline Foam::ISstream& Foam::ISstream::getLine(std::string& str)
{ {
std::getline(is_, str); std::getline(is_, str);
setState(is_.rdstate()); setState(is_.rdstate());