lib: fix for my previous commit. If there are no dependencies then don't insert dependencies

This commit is contained in:
Daniel Marjamäki 2012-02-15 08:13:42 +01:00
parent 8f3d511871
commit 04e4b5d14d
1 changed files with 2 additions and 1 deletions

View File

@ -339,6 +339,7 @@ void CppCheck::checkFile(const std::string &code, const char FileName[])
} }
// Update the _dependencies.. // Update the _dependencies..
if (_tokenizer.getFiles()->size() >= 2)
_dependencies.insert(_tokenizer.getFiles()->begin()+1, _tokenizer.getFiles()->end()); _dependencies.insert(_tokenizer.getFiles()->begin()+1, _tokenizer.getFiles()->end());
// call all "runChecks" in all registered Check classes // call all "runChecks" in all registered Check classes