From 5cf923d091ca5b975fa972d04b9ad96bedd2c4e8 Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Sat, 5 Dec 2015 21:07:03 +0100 Subject: [PATCH] Don't run SymbolDatabase::validate on --debug. Replace some NULL by nullptr --- cli/threadexecutor.cpp | 2 +- lib/tokenize.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cli/threadexecutor.cpp b/cli/threadexecutor.cpp index 37316118b..f7dc49db6 100644 --- a/cli/threadexecutor.cpp +++ b/cli/threadexecutor.cpp @@ -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); diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 7c47d0c1a..c576659f1 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -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()