aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/epee/include/readline_buffer.h4
-rw-r--r--contrib/epee/src/readline_buffer.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/epee/include/readline_buffer.h b/contrib/epee/include/readline_buffer.h
index 7d929bc4c..916d14f01 100644
--- a/contrib/epee/include/readline_buffer.h
+++ b/contrib/epee/include/readline_buffer.h
@@ -13,11 +13,11 @@ namespace rdln
void start();
void stop();
int process();
- bool is_running()
+ bool is_running() const
{
return m_cout_buf != NULL;
}
- void get_line(std::string& line);
+ void get_line(std::string& line) const;
void set_prompt(const std::string& prompt);
protected:
diff --git a/contrib/epee/src/readline_buffer.cpp b/contrib/epee/src/readline_buffer.cpp
index 68b739db9..9195937af 100644
--- a/contrib/epee/src/readline_buffer.cpp
+++ b/contrib/epee/src/readline_buffer.cpp
@@ -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);