|
5 | 5 | #include "private/conversion.hpp" |
6 | 6 | #include "private/platform.hpp" |
7 | 7 |
|
8 | | -Term::Result Term::prompt_blocking(std::string message, |
9 | | - std::string first_option, |
10 | | - std::string second_option, |
11 | | - std::string prompt_indicator) { |
| 8 | +Term::Result Term::prompt_blocking(const std::string& message, |
| 9 | + const std::string& first_option, |
| 10 | + const std::string& second_option, |
| 11 | + const std::string& prompt_indicator) { |
12 | 12 | Terminal term(false, true, true); |
13 | 13 | std::cout << message << " [" << first_option << '/' << second_option << ']' |
14 | 14 | << prompt_indicator << ' ' << std::flush; |
@@ -65,10 +65,10 @@ Term::Result Term::prompt_blocking(std::string message, |
65 | 65 | return Result::ERROR; |
66 | 66 | } |
67 | 67 |
|
68 | | -Term::Result Term::prompt_non_blocking(std::string message, |
69 | | - std::string first_option, |
70 | | - std::string second_option, |
71 | | - std::string prompt_indicator) { |
| 68 | +Term::Result Term::prompt_non_blocking(const std::string& message, |
| 69 | + const std::string& first_option, |
| 70 | + const std::string& second_option, |
| 71 | + const std::string& prompt_indicator) { |
72 | 72 | Terminal term(false, true, true); |
73 | 73 | std::cout << message << " [" << first_option << '/' << second_option << ']' |
74 | 74 | << prompt_indicator << ' ' << std::flush; |
|
0 commit comments