diff options
author | Daniel Jones <admin@danieljon.es> | 2020-06-13 17:00:52 +0930 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-06-13 17:00:52 +0930 |
commit | 971db58ef48db64151a31d4857104ede69475996 (patch) | |
tree | c3d7710d91bd01af288749d721311da6c591386c /Board.h | |
parent | 7bde399a0a71f09684f65ebb86d2eaf844e2fc79 (diff) | |
download | foxminesweeper-971db58ef48db64151a31d4857104ede69475996.tar.gz foxminesweeper-971db58ef48db64151a31d4857104ede69475996.zip |
make shared_ptr -> unique_ptr
Diffstat (limited to 'Board.h')
-rw-r--r-- | Board.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -35,7 +35,7 @@ class Board bool is_game_won() { return this->game_won; }; bool check_win(); private: - std::vector<std::shared_ptr<Tile>> tiles; + std::vector<std::unique_ptr<Tile>> tiles; void generate_mines(); void retrieve_neighbors(); void count_neighbor_mines(Tile *tile); |