Replace custom code with Settings::isWindowsPlatform()
This commit is contained in:
parent
9a5260a43f
commit
c0aceb893e
|
@ -9707,9 +9707,7 @@ void Tokenizer::simplifyNamespaceStd()
|
|||
void Tokenizer::simplifyMicrosoftMFC()
|
||||
{
|
||||
// skip if not Windows
|
||||
if (!(_settings->platformType == Settings::Win32A ||
|
||||
_settings->platformType == Settings::Win32W ||
|
||||
_settings->platformType == Settings::Win64))
|
||||
if (!_settings->isWindowsPlatform())
|
||||
return;
|
||||
|
||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||
|
@ -9724,9 +9722,7 @@ void Tokenizer::simplifyMicrosoftMFC()
|
|||
void Tokenizer::simplifyMicrosoftMemoryFunctions()
|
||||
{
|
||||
// skip if not Windows
|
||||
if (!(_settings->platformType == Settings::Win32A ||
|
||||
_settings->platformType == Settings::Win32W ||
|
||||
_settings->platformType == Settings::Win64))
|
||||
if (!_settings->isWindowsPlatform())
|
||||
return;
|
||||
|
||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||
|
|
Loading…
Reference in New Issue