• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Deeangbandのフルスクラッチ新ソースコード。BSD系ライセンスを採用予定。


Commit MetaInfo

Revisão64a5070d00c711c1d15241fe5680f69a800eaf27 (tree)
Hora2014-02-28 00:20:19
AutorHabu <habu@user...>
CommiterHabu

Mensagem de Log

use 'make_shared' helper function instead of std::shared_ptr<T>(new T())

Mudança Sumário

Diff

--- a/Deeangband/Floor.cpp
+++ b/Deeangband/Floor.cpp
@@ -19,7 +19,7 @@ Floor::Floor()
1919 {
2020 width = 50;
2121 height = 50;
22- squares = vector<vector<shared_ptr<Square>>> (height, vector<shared_ptr<Square>>(width, shared_ptr<Square>(new Square(this))));
22+ squares = vector<vector<shared_ptr<Square>>> (height, vector<shared_ptr<Square>>(width, make_shared<Square>(this)));
2323 }
2424
2525 Floor::~Floor()