Skip to content

Commit 0edd017

Browse files
committed
Pass by value to process_input
1 parent f7e4643 commit 0edd017

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utils/terminal_pager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void terminal_pager::maybe_grab_cout()
5757
}
5858
}
5959

60-
bool terminal_pager::process_input(const std::string& input)
60+
bool terminal_pager::process_input(std::string input)
6161
{
6262
if (input.size() == 0)
6363
{

src/utils/terminal_pager.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class terminal_pager
4141
void maybe_grab_cout();
4242

4343
// Return true if should stop pager.
44-
bool process_input(const std::string& input);
44+
bool process_input(std::string input);
4545

4646
void release_cout();
4747

0 commit comments

Comments
 (0)