forked from qt-creator/qt-creator
TextEditor: Modernize
modernize-* Change-Id: Ic497fea1942a77cf017be3b0033f92e3807066f1 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -92,9 +92,7 @@ OutlineWidgetStack::OutlineWidgetStack(OutlineFactory *factory) :
|
||||
updateCurrentEditor(Core::EditorManager::currentEditor());
|
||||
}
|
||||
|
||||
OutlineWidgetStack::~OutlineWidgetStack()
|
||||
{
|
||||
}
|
||||
OutlineWidgetStack::~OutlineWidgetStack() = default;
|
||||
|
||||
QToolButton *OutlineWidgetStack::toggleSyncButton()
|
||||
{
|
||||
@@ -166,7 +164,7 @@ void OutlineWidgetStack::updateCurrentEditor(Core::IEditor *editor)
|
||||
IOutlineWidget *newWidget = nullptr;
|
||||
|
||||
if (editor) {
|
||||
for (IOutlineWidgetFactory *widgetFactory : g_outlineWidgetFactories) {
|
||||
for (IOutlineWidgetFactory *widgetFactory : qAsConst(g_outlineWidgetFactories)) {
|
||||
if (widgetFactory->supportsEditor(editor)) {
|
||||
newWidget = widgetFactory->createWidget(editor);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user