Don't run SymbolDatabase::validate on --debug. Replace some NULL by nullptr

This commit is contained in:
Alexander Mai 2015-12-05 21:07:03 +01:00
parent ba0859e838
commit 5cf923d091
2 changed files with 4 additions and 3 deletions

View File

@ -365,7 +365,7 @@ unsigned int ThreadExecutor::check()
InitializeCriticalSection(&_reportSync);
for (unsigned int i = 0; i < _settings._jobs; ++i) {
threadHandles[i] = (HANDLE)_beginthreadex(NULL, 0, threadProc, this, 0, NULL);
threadHandles[i] = (HANDLE)_beginthreadex(nullptr, 0, threadProc, this, 0, nullptr);
if (!threadHandles[i]) {
std::cerr << "#### .\nThreadExecutor::check error, errno :" << errno << std::endl;
exit(EXIT_FAILURE);

View File

@ -9840,8 +9840,9 @@ void Tokenizer::createSymbolDatabase()
{
if (!_symbolDatabase)
_symbolDatabase = new SymbolDatabase(this, _settings, _errorLogger);
if (_settings->debug)
_symbolDatabase->validate();
if (_settings->debug) {
//_symbolDatabase->validate();
}
}
void Tokenizer::deleteSymbolDatabase()