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()
|
void Tokenizer::simplifyMicrosoftMFC()
|
||||||
{
|
{
|
||||||
// skip if not Windows
|
// skip if not Windows
|
||||||
if (!(_settings->platformType == Settings::Win32A ||
|
if (!_settings->isWindowsPlatform())
|
||||||
_settings->platformType == Settings::Win32W ||
|
|
||||||
_settings->platformType == Settings::Win64))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||||
|
@ -9724,9 +9722,7 @@ void Tokenizer::simplifyMicrosoftMFC()
|
||||||
void Tokenizer::simplifyMicrosoftMemoryFunctions()
|
void Tokenizer::simplifyMicrosoftMemoryFunctions()
|
||||||
{
|
{
|
||||||
// skip if not Windows
|
// skip if not Windows
|
||||||
if (!(_settings->platformType == Settings::Win32A ||
|
if (!_settings->isWindowsPlatform())
|
||||||
_settings->platformType == Settings::Win32W ||
|
|
||||||
_settings->platformType == Settings::Win64))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||||
|
|
Loading…
Reference in New Issue