forked from qt-creator/qt-creator
Debugger: Modernize
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init modernize-use-equals-default Change-Id: I91a6874f0d7b94e9079ab4ef07c23c60c80be9c0 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -63,7 +63,7 @@ Console::Console()
|
||||
m_consoleWidget->setWindowTitle(displayName());
|
||||
m_consoleWidget->setEnabled(true);
|
||||
|
||||
QVBoxLayout *vbox = new QVBoxLayout(m_consoleWidget);
|
||||
auto vbox = new QVBoxLayout(m_consoleWidget);
|
||||
vbox->setMargin(0);
|
||||
vbox->setSpacing(0);
|
||||
|
||||
@@ -92,7 +92,7 @@ Console::Console()
|
||||
itemDelegate, &ConsoleItemDelegate::currentChanged);
|
||||
m_consoleView->setItemDelegate(itemDelegate);
|
||||
|
||||
Aggregation::Aggregate *aggregate = new Aggregation::Aggregate();
|
||||
auto aggregate = new Aggregation::Aggregate();
|
||||
aggregate->add(m_consoleView);
|
||||
aggregate->add(new Core::ItemViewFind(m_consoleView));
|
||||
|
||||
@@ -189,7 +189,7 @@ bool Console::canFocus() const
|
||||
|
||||
bool Console::hasFocus() const
|
||||
{
|
||||
for (QWidget *widget = m_consoleWidget->window()->focusWidget(); widget != 0;
|
||||
for (QWidget *widget = m_consoleWidget->window()->focusWidget(); widget != nullptr;
|
||||
widget = widget->parentWidget()) {
|
||||
if (widget == m_consoleWidget)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user