Gui: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 18:41:21 +01:00
parent be7e18757c
commit 1178df06b4
239 changed files with 1197 additions and 1197 deletions

View File

@@ -43,7 +43,7 @@ using namespace Gui::TaskView;
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
TaskWatcher::TaskWatcher(const char* Filter)
: QObject(0),SelectionFilter(Filter)
: QObject(nullptr),SelectionFilter(Filter)
{
}
@@ -83,7 +83,7 @@ TaskWatcherCommands::TaskWatcherCommands(const char* Filter,const char* commands
if (commands) {
CommandManager &mgr = Gui::Application::Instance->commandManager();
Gui::TaskView::TaskBox *tb = new Gui::TaskView::TaskBox
(BitmapFactory().pixmap(pixmap), tr(name), true, 0);
(BitmapFactory().pixmap(pixmap), tr(name), true, nullptr);
for (const char** i=commands;*i;i++) {
Command *c = mgr.getCommandByName(*i);
@@ -116,7 +116,7 @@ bool TaskWatcherCommands::shouldShow()
TaskWatcherCommandsEmptyDoc::TaskWatcherCommandsEmptyDoc(const char* commands[],
const char* name,
const char* pixmap )
: TaskWatcherCommands(0,commands,name,pixmap)
: TaskWatcherCommands(nullptr,commands,name,pixmap)
{
}
@@ -141,7 +141,7 @@ bool TaskWatcherCommandsEmptyDoc::shouldShow()
TaskWatcherCommandsEmptySelection::TaskWatcherCommandsEmptySelection(const char* commands[],
const char* name,
const char* pixmap )
: TaskWatcherCommands(0,commands,name,pixmap)
: TaskWatcherCommands(nullptr,commands,name,pixmap)
{
}