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();
//- 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.
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);
setState(is_.rdstate());