summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/common/IOStreamGetLine.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/common/IOStreamGetLine.h b/lib/common/IOStreamGetLine.h
index 7667642d..1b537031 100644
--- a/lib/common/IOStreamGetLine.h
+++ b/lib/common/IOStreamGetLine.h
@@ -33,7 +33,13 @@ private:
public:
bool GetLine(std::string &rOutput, bool Preprocess = false, int Timeout = IOStream::TimeOutInfinite);
-
+ std::string GetLine()
+ {
+ std::string output;
+ GetLine(output);
+ return output;
+ }
+
// Call to detach, setting file pointer correctly to last bit read.
// Only works for lseek-able file descriptors.
void DetachFile();