History

convert explicit shared pointer creation (using "new") to make_shared where possible/appropriate

Heather Anderson committed 5 years ago

Commit bcce9a21 parent 88b004562 files · +107 −107Browse files

Showing the changes to libraries/render-utils/src/ToneMapAndResampleTask.cpp (1 of 62 files). Show all

Unified · Split

libraries/render-utils/src/ToneMapAndResampleTask.cpp+1−1
@@ -32,7 +32,7 @@ ToneMapAndResample::ToneMapAndResample() { · 31 unmodified lines
3232
3333 void ToneMapAndResample::init() {
3434 // shared_ptr to gpu::State
35− gpu::StatePointer blitState = gpu::StatePointer(new gpu::State());
35+ gpu::StatePointer blitState = std::make_shared<gpu::State>();
3636
3737 blitState->setDepthTest(gpu::State::DepthTest(false, false));
3838 blitState->setColorWriteMask(true, true, true, true);