summaryrefslogtreecommitdiff
path: root/Board.cpp
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-06-13 17:00:52 +0930
committerDaniel Jones <admin@danieljon.es>2020-06-13 17:00:52 +0930
commit971db58ef48db64151a31d4857104ede69475996 (patch)
treec3d7710d91bd01af288749d721311da6c591386c /Board.cpp
parent7bde399a0a71f09684f65ebb86d2eaf844e2fc79 (diff)
downloadfoxminesweeper-971db58ef48db64151a31d4857104ede69475996.tar.gz
foxminesweeper-971db58ef48db64151a31d4857104ede69475996.zip
make shared_ptr -> unique_ptr
Diffstat (limited to 'Board.cpp')
-rw-r--r--Board.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Board.cpp b/Board.cpp
index 39caacf..f6eb593 100644
--- a/Board.cpp
+++ b/Board.cpp
@@ -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();