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:
Nemerle
2021-08-05 16:52:43 +02:00
parent 7404622b48
commit 769fd78189
32 changed files with 136 additions and 136 deletions
+10 -10
View File
@@ -19,7 +19,7 @@ const char* CWipFeatureManager::kWipFeaturesFilename = "@user@\\Editor\\UI\\WipF
#else
const char* CWipFeatureManager::kWipFeaturesFilename = "@user@/Editor/UI/WipFeatures.xml";
#endif
CWipFeatureManager* CWipFeatureManager::s_pInstance = NULL;
CWipFeatureManager* CWipFeatureManager::s_pInstance = nullptr;
static void WipFeatureVarChange(ICVar* pVar)
{
@@ -162,7 +162,7 @@ void CWipFeatureManager::Shutdown()
{
CWipFeatureManager::Instance()->Save();
delete s_pInstance;
s_pInstance = NULL;
s_pInstance = nullptr;
}
bool CWipFeatureManager::Load(const char* pFilename, bool bClearExisting)
@@ -350,7 +350,7 @@ void CWipFeatureManager::ShowFeature(int aFeatureId, bool bShow)
if (m_features[aFeatureId].m_pfnUpdateFeature)
{
m_features[aFeatureId].m_pfnUpdateFeature(aFeatureId, &bShow, NULL, NULL, NULL);
m_features[aFeatureId].m_pfnUpdateFeature(aFeatureId, &bShow, nullptr, nullptr, nullptr);
}
}
@@ -360,7 +360,7 @@ void CWipFeatureManager::EnableFeature(int aFeatureId, bool bEnable)
if (m_features[aFeatureId].m_pfnUpdateFeature)
{
m_features[aFeatureId].m_pfnUpdateFeature(aFeatureId, NULL, &bEnable, NULL, NULL);
m_features[aFeatureId].m_pfnUpdateFeature(aFeatureId, nullptr, &bEnable, nullptr, nullptr);
}
}
@@ -370,7 +370,7 @@ void CWipFeatureManager::SetFeatureSafeMode(int aFeatureId, bool bSafeMode)
if (m_features[aFeatureId].m_pfnUpdateFeature)
{
m_features[aFeatureId].m_pfnUpdateFeature(aFeatureId, NULL, NULL, &bSafeMode, NULL);
m_features[aFeatureId].m_pfnUpdateFeature(aFeatureId, nullptr, nullptr, &bSafeMode, nullptr);
}
}
@@ -380,7 +380,7 @@ void CWipFeatureManager::SetFeatureParams(int aFeatureId, const char* pParams)
if (m_features[aFeatureId].m_pfnUpdateFeature)
{
m_features[aFeatureId].m_pfnUpdateFeature(aFeatureId, NULL, NULL, NULL, pParams);
m_features[aFeatureId].m_pfnUpdateFeature(aFeatureId, nullptr, nullptr, nullptr, pParams);
}
}
@@ -392,7 +392,7 @@ void CWipFeatureManager::ShowAllFeatures(bool bShow)
if (iter->second.m_pfnUpdateFeature)
{
iter->second.m_pfnUpdateFeature(iter->first, &bShow, NULL, NULL, NULL);
iter->second.m_pfnUpdateFeature(iter->first, &bShow, nullptr, nullptr, nullptr);
}
}
}
@@ -405,7 +405,7 @@ void CWipFeatureManager::EnableAllFeatures(bool bEnable)
if (iter->second.m_pfnUpdateFeature)
{
iter->second.m_pfnUpdateFeature(iter->first, NULL, &bEnable, NULL, NULL);
iter->second.m_pfnUpdateFeature(iter->first, nullptr, &bEnable, nullptr, nullptr);
}
}
}
@@ -418,7 +418,7 @@ void CWipFeatureManager::SetAllFeaturesSafeMode(bool bSafeMode)
if (iter->second.m_pfnUpdateFeature)
{
iter->second.m_pfnUpdateFeature(iter->first, NULL, NULL, &bSafeMode, NULL);
iter->second.m_pfnUpdateFeature(iter->first, nullptr, nullptr, &bSafeMode, nullptr);
}
}
}
@@ -431,7 +431,7 @@ void CWipFeatureManager::SetAllFeaturesParams(const char* pParams)
if (iter->second.m_pfnUpdateFeature)
{
iter->second.m_pfnUpdateFeature(iter->first, NULL, NULL, NULL, pParams);
iter->second.m_pfnUpdateFeature(iter->first, nullptr, nullptr, nullptr, pParams);
}
}
}