diff --git a/src/reshade_effect_manager.cpp b/src/reshade_effect_manager.cpp index 382a016bf..efa5a272e 100644 --- a/src/reshade_effect_manager.cpp +++ b/src/reshade_effect_manager.cpp @@ -494,7 +494,7 @@ static std::vector> createReshadeUniforms(const auto sourceAnnotation = std::find_if(uniform.annotations.begin(), uniform.annotations.end(), [](const auto& a) { return a.name == "source"; }); if (sourceAnnotation == uniform.annotations.end()) { - uniforms.push_back(std::shared_ptr(new DataUniform(uniform))); + uniforms.push_back(std::make_shared(uniform)); continue; } else @@ -502,47 +502,47 @@ static std::vector> createReshadeUniforms(const auto& source = sourceAnnotation->value.string_data; if (source == "frametime") { - uniforms.push_back(std::shared_ptr(new FrameTimeUniform(uniform))); + uniforms.push_back(std::make_shared(uniform)); } else if (source == "framecount") { - uniforms.push_back(std::shared_ptr(new FrameCountUniform(uniform))); + uniforms.push_back(std::make_shared(uniform)); } else if (source == "date") { - uniforms.push_back(std::shared_ptr(new DateUniform(uniform))); + uniforms.push_back(std::make_shared(uniform)); } else if (source == "timer") { - uniforms.push_back(std::shared_ptr(new TimerUniform(uniform))); + uniforms.push_back(std::make_shared(uniform)); } else if (source == "pingpong") { - uniforms.push_back(std::shared_ptr(new PingPongUniform(uniform))); + uniforms.push_back(std::make_shared(uniform)); } else if (source == "random") { - uniforms.push_back(std::shared_ptr(new RandomUniform(uniform))); + uniforms.push_back(std::make_shared(uniform)); } else if (source == "key") { - uniforms.push_back(std::shared_ptr(new KeyUniform(uniform))); + uniforms.push_back(std::make_shared(uniform)); } else if (source == "mousebutton") { - uniforms.push_back(std::shared_ptr(new MouseButtonUniform(uniform))); + uniforms.push_back(std::make_shared(uniform)); } else if (source == "mousepoint") { - uniforms.push_back(std::shared_ptr(new MousePointUniform(uniform))); + uniforms.push_back(std::make_shared(uniform)); } else if (source == "mousedelta") { - uniforms.push_back(std::shared_ptr(new MouseDeltaUniform(uniform))); + uniforms.push_back(std::make_shared(uniform)); } else if (source == "bufready_depth") { - uniforms.push_back(std::shared_ptr(new DepthUniform(uniform))); + uniforms.push_back(std::make_shared(uniform)); } else {