Refactoring, use Settings::platformString()

This commit is contained in:
Daniel Marjamäki 2016-08-02 10:53:51 +02:00
parent 864cef2fd2
commit 99b23012aa
1 changed files with 1 additions and 2 deletions

View File

@ -5637,8 +5637,7 @@ void Tokenizer::simplifyPlatformTypes()
} }
if (_settings->isWindowsPlatform()) { if (_settings->isWindowsPlatform()) {
std::string platform_type = _settings->platformType == Settings::Win32A ? "win32A" : std::string platform_type(_settings->platformString());
_settings->platformType == Settings::Win32W ? "win32W" : "win64";
for (Token *tok = list.front(); tok; tok = tok->next()) { for (Token *tok = list.front(); tok; tok = tok->next()) {
if (tok->tokType() != Token::eType && tok->tokType() != Token::eName) if (tok->tokType() != Token::eType && tok->tokType() != Token::eName)