Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: shell/src/Main.cpp

Issue 6271127710072832: No Issue - fix to be conform with std API (Closed)
Patch Set: Created June 11, 2015, 12:57 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/src/Main.cpp
diff --git a/shell/src/Main.cpp b/shell/src/Main.cpp
index 2cd73eb74a60bb2d2f733d6ee79bf19a353fd778..8a65ea48e4f41c70e1e3f185ef813c72d4c6d402 100644
--- a/shell/src/Main.cpp
+++ b/shell/src/Main.cpp
@@ -36,7 +36,7 @@ namespace
bool ReadCommandLine(std::string& commandLine)
{
std::cout << "> ";
- const bool success = std::getline(std::cin, commandLine);
+ const bool success = std::getline(std::cin, commandLine).good();
Felix Dahlke 2015/06/17 19:06:51 Seems standard conform the way it was to me - shou
if (!success)
std::cout << std::endl;
return success;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld