forked from qt-creator/qt-creator
Remove bool return value from IEditor::restoreState()
It's never used, and actually there wouldn't be any sensible thing to do with it. Change-Id: Id8a8df18c7db4b98e5abbc034240bb90dc1dcaa9 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -159,7 +159,7 @@ void QmlJSEditorWidget::finalizeInitialization()
|
||||
createToolBar();
|
||||
}
|
||||
|
||||
bool QmlJSEditorWidget::restoreState(const QByteArray &state)
|
||||
void QmlJSEditorWidget::restoreState(const QByteArray &state)
|
||||
{
|
||||
QStringList qmlTypes { QmlJSTools::Constants::QML_MIMETYPE,
|
||||
QmlJSTools::Constants::QBS_MIMETYPE,
|
||||
@@ -174,7 +174,7 @@ bool QmlJSEditorWidget::restoreState(const QByteArray &state)
|
||||
foldAuxiliaryData();
|
||||
}
|
||||
|
||||
return TextEditorWidget::restoreState(state);
|
||||
TextEditorWidget::restoreState(state);
|
||||
}
|
||||
|
||||
QModelIndex QmlJSEditorWidget::outlineModelIndex()
|
||||
|
||||
@@ -58,7 +58,7 @@ public:
|
||||
QmlJSEditorWidget();
|
||||
|
||||
void finalizeInitialization() override;
|
||||
bool restoreState(const QByteArray &state) override;
|
||||
void restoreState(const QByteArray &state) override;
|
||||
|
||||
QmlJSEditorDocument *qmlJsEditorDocument() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user