aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/src/readline_buffer.cpp
diff options
context:
space:
mode:
author0xFFFC0000 <0xFFFC0000@proton.me>2024-03-15 11:24:12 +0000
committer0xFFFC0000 <0xFFFC0000@proton.me>2024-03-15 19:19:39 +0330
commitd6b35e97be2c7b6809ff94ca076f4a02e4238898 (patch)
tree71ba6945bd06aab37137f8435af216bae8a00ba8 /contrib/epee/src/readline_buffer.cpp
parent81d4db08eb75ce5392c65ca6571e7b08e41b7c95 (diff)
downloadmonzero-core-d6b35e97be2c7b6809ff94ca076f4a02e4238898.tar.gz
monzero-core-d6b35e97be2c7b6809ff94ca076f4a02e4238898.tar.xz
monzero-core-d6b35e97be2c7b6809ff94ca076f4a02e4238898.zip
Cleanup string_tools.
1. Use boost::filesystem for already available operations. 2. Use boost::string for already available operations.
Diffstat (limited to 'contrib/epee/src/readline_buffer.cpp')
-rw-r--r--contrib/epee/src/readline_buffer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/src/readline_buffer.cpp b/contrib/epee/src/readline_buffer.cpp
index ac68d1fdb..cefde158c 100644
--- a/contrib/epee/src/readline_buffer.cpp
+++ b/contrib/epee/src/readline_buffer.cpp
@@ -1,4 +1,5 @@
#include "readline_buffer.h"
+#include "string_tools.h"
#include <readline/readline.h>
#include <readline/history.h>
#include <iostream>
@@ -173,7 +174,7 @@ static void handle_line(char* line)
line_stat = rdln::full;
the_line = line;
std::string test_line = line;
- boost::trim_right(test_line);
+ epee::string_tools::trim_right(test_line);
if(!test_line.empty())
{
if (!same_as_last_line(test_line))