diff --git a/wcclparser/main.cpp b/wcclparser/main.cpp index cffc4bcb9dde84e72e961ec72cf44979d0f181e6..dc89d298d6277aba16a7c463bff67a2637fc7347 100644 --- a/wcclparser/main.cpp +++ b/wcclparser/main.cpp @@ -34,15 +34,15 @@ namespace { void std_read_loop(boost::function<bool (const std::string&)>& line_cb) { - while (std::cin.good()) { - std::cout << _prompt << std::flush; - std::string s; - getline(std::cin, s); - if (line_cb(s)) { - return; - } - } -} + while (std::cin.good()) { + std::cout << _prompt << std::flush; + std::string s; + getline(std::cin, s); + if (line_cb(s)) { + return; + } + } +] #if defined(HAVE_LIBEDIT) && !defined(_WINDOWS) //non-Windows libedit read loop @@ -137,7 +137,7 @@ void read_loop(boost::function<bool (const std::string&)>& line_cb) inline void read_loop(boost::function<bool (const std::string&)>& line_cb) { - std_read_loop(line_cb); + std_read_loop(line_cb); } #endif