summaryrefslogtreecommitdiff
path: root/Userland/Games/Chess/ChessWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Games/Chess/ChessWidget.h')
-rw-r--r--Userland/Games/Chess/ChessWidget.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Games/Chess/ChessWidget.h b/Userland/Games/Chess/ChessWidget.h
index 4705dc4ed6..256e201f9b 100644
--- a/Userland/Games/Chess/ChessWidget.h
+++ b/Userland/Games/Chess/ChessWidget.h
@@ -35,7 +35,7 @@ public:
Chess::Color side() const { return m_side; };
void set_side(Chess::Color side) { m_side = side; };
- void set_piece_set(const StringView& set);
+ void set_piece_set(StringView set);
const String& piece_set() const { return m_piece_set; };
Chess::Square mouse_to_square(GUI::MouseEvent& event) const;
@@ -48,8 +48,8 @@ public:
void set_show_available_moves(bool e) { m_show_available_moves = e; }
String get_fen() const;
- bool import_pgn(const StringView& import_path);
- bool export_pgn(const StringView& export_path) const;
+ bool import_pgn(StringView import_path);
+ bool export_pgn(StringView export_path) const;
int resign();
void flip_board();
@@ -63,7 +63,7 @@ public:
const BoardTheme& board_theme() const { return m_board_theme; }
void set_board_theme(const BoardTheme& theme) { m_board_theme = theme; }
- void set_board_theme(const StringView& name);
+ void set_board_theme(StringView name);
enum class PlaybackDirection {
First,