mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
remove unnecessary 'new' operators
This commit is contained in:
parent
26e2068164
commit
fab124a2e2
9 changed files with 36 additions and 42 deletions
|
|
@ -3,7 +3,9 @@
|
|||
#include "../../graphics/core/Batch2D.hpp"
|
||||
#include "../../engine.hpp"
|
||||
|
||||
Screen::Screen(Engine* engine) : engine(engine), batch(new Batch2D(1024)) {
|
||||
Screen::Screen(Engine* engine)
|
||||
: engine(engine),
|
||||
batch(std::make_unique<Batch2D>(1024)) {
|
||||
}
|
||||
|
||||
Screen::~Screen() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue