diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2017-02-18 12:40:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-18 12:40:00 +0100 |
| commit | 6acad279197d3b768737ca701e77439becc13681 (patch) | |
| tree | 0e8fba3f619783768617577df98227854f512306 /Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp | |
| parent | 5814d23fd9bfc0e2bcfb109d5f74763de8ae9b0c (diff) | |
| parent | 1fa81f24d3b24f8b47dfa58040f57bbeb7407c30 (diff) | |
Merge pull request #4927 from lioncash/unique-ptr
VertexManagerBase: Make CreateNativeVertexFormat return a unique_ptr
Diffstat (limited to 'Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp b/Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp index 4aa52bd4bf..01658b66e6 100644 --- a/Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp +++ b/Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp @@ -27,10 +27,10 @@ private: ID3D11InputLayout* m_layout = nullptr; }; -NativeVertexFormat* +std::unique_ptr<NativeVertexFormat> VertexManager::CreateNativeVertexFormat(const PortableVertexDeclaration& vtx_decl) { - return new D3DVertexFormat(vtx_decl); + return std::make_unique<D3DVertexFormat>(vtx_decl); } static const DXGI_FORMAT d3d_format_lookup[5 * 4 * 2] = { |
