Editor code: tidy up BOOLs,NULLs and overrides pt6.
A few 'typedefs' replaced by 'using's This shouldn't have any functional changes at all, just c++17 modernization It's a part 6 of a split #2847 Signed-off-by: Nemerle <nemerle5+git@gmail.com>
This commit is contained in:
@@ -55,7 +55,7 @@ CViewManager::CViewManager()
|
||||
m_updateRegion.min = Vec3(-100000, -100000, -100000);
|
||||
m_updateRegion.max = Vec3(100000, 100000, 100000);
|
||||
|
||||
m_pSelectedView = NULL;
|
||||
m_pSelectedView = nullptr;
|
||||
|
||||
m_nGameViewports = 0;
|
||||
m_bGameViewportsUpdated = false;
|
||||
@@ -117,7 +117,7 @@ void CViewManager::UnregisterViewport(CViewport* pViewport)
|
||||
{
|
||||
if (m_pSelectedView == pViewport)
|
||||
{
|
||||
m_pSelectedView = NULL;
|
||||
m_pSelectedView = nullptr;
|
||||
}
|
||||
stl::find_and_erase(m_viewports, pViewport);
|
||||
m_bGameViewportsUpdated = false;
|
||||
@@ -137,7 +137,7 @@ CViewport* CViewManager::GetViewport(EViewportType type) const
|
||||
return m_viewports[i];
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
@@ -150,7 +150,7 @@ CViewport* CViewManager::GetViewport(const QString& name) const
|
||||
return m_viewports[i];
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
@@ -234,7 +234,7 @@ void CViewManager::SelectViewport(CViewport* pViewport)
|
||||
{
|
||||
// Audio: Handle viewport change for listeners
|
||||
|
||||
if (m_pSelectedView != NULL && m_pSelectedView != pViewport)
|
||||
if (m_pSelectedView != nullptr && m_pSelectedView != pViewport)
|
||||
{
|
||||
m_pSelectedView->SetSelected(false);
|
||||
|
||||
@@ -242,7 +242,7 @@ void CViewManager::SelectViewport(CViewport* pViewport)
|
||||
|
||||
m_pSelectedView = pViewport;
|
||||
|
||||
if (m_pSelectedView != NULL)
|
||||
if (m_pSelectedView != nullptr)
|
||||
{
|
||||
m_pSelectedView->SetSelected(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user