[nostalgia] Replace most new calls with ox::make

This commit is contained in:
2022-12-17 22:30:29 -06:00
parent 716b3d6022
commit 31e9af032a
5 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ ox::Result<ox::UniquePtr<Context>> init(ox::UniquePtr<ox::FileSystem> fs, const
auto ctx = ox::make_unique<Context>();
ctx->rom = std::move(fs);
ctx->appName = appName;
const auto id = new GlfwImplData;
const auto id = ox::make<GlfwImplData>();
ctx->setWindowerData(id);
using namespace std::chrono;
id->startTime = duration_cast<milliseconds>(system_clock::now().time_since_epoch()).count();