refactoring. combine 2 if to 1

This commit is contained in:
Daniel Marjamäki 2015-12-14 20:05:17 +01:00
parent b1d1869f22
commit 9acda09fa2
1 changed files with 4 additions and 6 deletions

View File

@ -215,13 +215,11 @@ unsigned int CppCheck::processFile(const std::string& filename, std::istream& fi
continue;
// dump xml if --dump
if (_settings.dump) {
if (fdump.is_open()) {
if (_settings.dump && fdump.is_open()) {
fdump << "<dump cfg=\"" << cfg << "\">" << std::endl;
_tokenizer.dump(fdump);
fdump << "</dump>" << std::endl;
}
}
// Skip if we already met the same simplified token list
if (_settings._force || _settings._maxConfigs > 1) {