Replace casting 0 to a pointer with nullptr (#5062)
## Summary of the Pull Request When I did my last PR that was merged, the PR #4960, there were two more cases I forgot to include, so I included them here, for the sake of consistency and completion ## References PR #4690 ## PR Checklist * [X] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [X] Tests added/passed ## Detailed Description of the Pull Request / Additional comments Replacing pointer casts to 0 with nullptr in two tests. ## Validation Steps Performed Manual Testing Automated Testing
This commit is contained in:
parent
ca33d895a3
commit
27b28edcee
|
@ -63,7 +63,7 @@ class CommandListPopupTests
|
|||
|
||||
TEST_METHOD_CLEANUP(MethodCleanup)
|
||||
{
|
||||
CommandHistory::s_Free((HANDLE)0);
|
||||
CommandHistory::s_Free(nullptr);
|
||||
m_pHistory = nullptr;
|
||||
m_state->CleanupCookedReadData();
|
||||
m_state->CleanupReadHandle();
|
||||
|
|
|
@ -45,7 +45,7 @@ class CopyToCharPopupTests
|
|||
m_state->PrepareGlobalInputBuffer();
|
||||
m_state->PrepareReadHandle();
|
||||
m_state->PrepareCookedReadData();
|
||||
m_pHistory = CommandHistory::s_Allocate(L"cmd.exe", (HANDLE)0);
|
||||
m_pHistory = CommandHistory::s_Allocate(L"cmd.exe", nullptr);
|
||||
if (!m_pHistory)
|
||||
{
|
||||
return false;
|
||||
|
@ -55,7 +55,7 @@ class CopyToCharPopupTests
|
|||
|
||||
TEST_METHOD_CLEANUP(MethodCleanup)
|
||||
{
|
||||
CommandHistory::s_Free((HANDLE)0);
|
||||
CommandHistory::s_Free(nullptr);
|
||||
m_pHistory = nullptr;
|
||||
m_state->CleanupCookedReadData();
|
||||
m_state->CleanupReadHandle();
|
||||
|
|
Loading…
Reference in a new issue