Only simplify Windows's DEBUG_NEW macro on Windows platform
This commit is contained in:
parent
cd4c297dce
commit
9a5260a43f
|
@ -1955,6 +1955,9 @@ void Tokenizer::simplifySQL()
|
||||||
|
|
||||||
void Tokenizer::simplifyDebugNew()
|
void Tokenizer::simplifyDebugNew()
|
||||||
{
|
{
|
||||||
|
if (!_settings->isWindowsPlatform())
|
||||||
|
return;
|
||||||
|
|
||||||
// convert Microsoft DEBUG_NEW macro to new
|
// convert Microsoft DEBUG_NEW macro to new
|
||||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||||
if (tok->str() == "DEBUG_NEW")
|
if (tok->str() == "DEBUG_NEW")
|
||||||
|
|
Loading…
Reference in New Issue