Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPopkornium18 <mail@popkornium18.de>2020-06-28 01:17:36 +0300
committerPopkornium18 <mail@popkornium18.de>2020-06-28 20:04:21 +0300
commitfd8386a20641fe521803e3d5bfddc9a79cb0fef2 (patch)
tree0e0878a138f6de0d5b29ac93befaf34a01e12ec5 /overlay/D11StateBlock.cpp
parent2caae7960e3da0aac943c3eac82b55420c4a2721 (diff)
REFAC(overlay): replace NULL with nullptr
This changes all occurances of NULL in the overlay source dir to nullptr. Additionally explicit comparisons with NULL were removed.
Diffstat (limited to 'overlay/D11StateBlock.cpp')
-rw-r--r--overlay/D11StateBlock.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/overlay/D11StateBlock.cpp b/overlay/D11StateBlock.cpp
index 4a00fb820..ca1bfea9a 100644
--- a/overlay/D11StateBlock.cpp
+++ b/overlay/D11StateBlock.cpp
@@ -97,40 +97,40 @@ void D11StateBlock::ReleaseObjects()
{
if (pRasterizerState) {
pRasterizerState->Release();
- pRasterizerState = NULL;
+ pRasterizerState = nullptr;
}
for (int i=0; i<D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; i++)
if (pRenderTargetViews[i]) {
pRenderTargetViews[i]->Release();
- pRenderTargetViews[i] = NULL;
+ pRenderTargetViews[i] = nullptr;
}
if (pDepthStencilView) {
pDepthStencilView->Release();
- pDepthStencilView = NULL;
+ pDepthStencilView = nullptr;
}
if (pBlendState) {
pBlendState->Release();
- pBlendState = NULL;
+ pBlendState = nullptr;
}
if (pInputLayout) {
pInputLayout->Release();
- pInputLayout = NULL;
+ pInputLayout = nullptr;
}
if (pIndexBuffer) {
pIndexBuffer->Release();
- pIndexBuffer = NULL;
+ pIndexBuffer = nullptr;
}
for (int i=0; i<D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT; i++)
if (pVertexBuffers[i]) {
pVertexBuffers[i]->Release();
- pVertexBuffers[i] = NULL;
+ pVertexBuffers[i] = nullptr;
}
}