ClassView: Modernize

modernize-use-nullptr
modernize-use-auto
modernize-use-override
modernize-use-equals-default
modernize-use-using
modernize-loop-convert

Change-Id: I7dcc03ad38f6f943bc4c8b1049e7069f4b99c985
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Alessandro Portale
2018-11-04 22:40:59 +01:00
parent 26686c384f
commit 5001927425
12 changed files with 40 additions and 52 deletions

View File

@@ -52,7 +52,7 @@ namespace Internal {
///////////////////////////////// ManagerPrivate //////////////////////////////////
// static variable initialization
static Manager *managerInstance = 0;
static Manager *managerInstance = nullptr;
/*!
\class ClassView::Internal::Manager
@@ -141,8 +141,6 @@ static Manager *managerInstance = 0;
class ManagerPrivate
{
public:
ManagerPrivate() : state(false), disableCodeParser(false) {}
//! State mutex
QMutex mutexState;
@@ -153,10 +151,10 @@ public:
QThread parserThread;
//! Internal manager state. \sa Manager::state
bool state;
bool state = false;
//! there is some massive operation ongoing so temporary we should wait
bool disableCodeParser;
bool disableCodeParser = false;
};
///////////////////////////////// Manager //////////////////////////////////
@@ -185,7 +183,7 @@ Manager::~Manager()
d->parserThread.quit();
d->parserThread.wait();
delete d;
managerInstance = 0;
managerInstance = nullptr;
}
Manager *Manager::instance()