readline_buffer: add a couple const

This commit is contained in:
moneromooo-monero 2017-06-21 17:33:30 +01:00
parent ae8841f2ab
commit 5f8f290505
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
2 changed files with 3 additions and 3 deletions

View file

@ -62,7 +62,7 @@ void rdln::readline_buffer::stop()
remove_line_handler();
}
void rdln::readline_buffer::get_line(std::string& line)
void rdln::readline_buffer::get_line(std::string& line) const
{
std::unique_lock<std::mutex> lock(line_mutex);
have_line.wait(lock);