File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ void Window_Command::EnableItem(int i) {
6565 DrawItem (i, Font::ColorDefault);
6666}
6767
68- void Window_Command::SetItemText (unsigned index, std::string const & text) {
68+ void Window_Command::SetItemText (unsigned index, StringView text) {
6969 if (index < commands.size ()) {
70- commands[index] = text;
70+ commands[index] = ToString ( text) ;
7171 DrawItem (index, Font::ColorDefault);
7272 }
7373}
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class Window_Command: public Window_Selectable {
6565 * @param index command index.
6666 * @param text new item text.
6767 */
68- void SetItemText (unsigned index, std::string const & text);
68+ void SetItemText (unsigned index, StringView text);
6969
7070protected:
7171 std::vector<std::string> commands;
You can’t perform that action at this time.
0 commit comments