Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
aa0f2e0d
Commit
aa0f2e0d
authored
Nov 03, 2018
by
Mark Olesen
Browse files
STYLE: accept std::string for ISstream::getLine
parent
fd54070c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/IOstreams/Sstreams/ISstream.H
View file @
aa0f2e0d
...
...
@@ -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
);
...
...
src/OpenFOAM/db/IOstreams/Sstreams/ISstreamI.H
View file @
aa0f2e0d
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment