}
}
-void InputKeyRequestor::confirm_command(std::optional<std::string_view> inscription, const int caret_command)
+void InputKeyRequestor::confirm_command(const std::optional<std::string> &inscription, const int caret_command)
{
if (!inscription.has_value()) {
return;
auto s = inscription->data();
s = angband_strchr(s, '^');
- while (s) {
+ while (s != nullptr) {
#ifdef JP
- auto sure = (s[1] == caret_command) || (s[1] == '*');
+ auto sure = s[1] == caret_command;
#else
- auto sure = (s[1] == command_cmd) || (s[1] == '*');
+ auto sure = s[1] == command_cmd;
(void)caret_command;
#endif
if (sure) {
#include "system/angband.h"
#include <optional>
#include <string>
-#include <string_view>
extern concptr keymap_act[KEYMAP_MODES][256];
void change_shopping_command();
int get_caret_command();
void sweep_confirmation_equipments();
- void confirm_command(std::optional<std::string_view> inscription, const int caret_command);
+ void confirm_command(const std::optional<std::string> &inscription, const int caret_command);
void make_commands_frame();
std::string switch_special_menu_condition(const SpecialMenuContent &special_menu);