Replace custom code with Settings::isWindowsPlatform()

This commit is contained in:
Thomas Jarosch 2015-01-18 12:41:48 +01:00
parent 9a5260a43f
commit c0aceb893e
1 changed files with 2 additions and 6 deletions

View File

@ -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()) {