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.cpp | |
parent | 7bde399a0a71f09684f65ebb86d2eaf844e2fc79 (diff) | |
download | foxminesweeper-971db58ef48db64151a31d4857104ede69475996.tar.gz foxminesweeper-971db58ef48db64151a31d4857104ede69475996.zip |
make shared_ptr -> unique_ptr
Diffstat (limited to 'Board.cpp')
-rw-r--r-- | Board.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,8 +29,8 @@ Board:: Board(int width, int height, int minecount) { for (int y = 0; y < width; y++) { - std::shared_ptr<Tile> t(new Tile(x, y)); - tiles.push_back(t); + std::unique_ptr<Tile> t(new Tile(x, y)); + tiles.push_back(std::move(t)); } } generate_mines(); |