Gui: modernize C++11
* use nullptr
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user