diff options
Diffstat (limited to 'src/ui/widgets/TextEdit.cpp')
-rw-r--r-- | src/ui/widgets/TextEdit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/widgets/TextEdit.cpp b/src/ui/widgets/TextEdit.cpp index 25fce9b8..a0dba5f5 100644 --- a/src/ui/widgets/TextEdit.cpp +++ b/src/ui/widgets/TextEdit.cpp @@ -261,7 +261,7 @@ void TextEdit::slot_remove_tab(int index) { * * If it returns false, the close event should be aborted. */ -bool TextEdit::maybe_save_current_tab(bool askToSave) { +auto TextEdit::maybe_save_current_tab(bool askToSave) -> bool { PlainTextEditorPage* page = SlotCurPageTextEdit(); // if this page is no textedit, there should be nothing to save if (page == nullptr) { @@ -304,8 +304,8 @@ bool TextEdit::maybe_save_current_tab(bool askToSave) { } auto TextEdit::MaybeSaveAnyTab() -> bool { - // get a list of all unsaved documents and their tabids - QHash<int, QString> unsaved_docs = this->UnsavedDocuments(); + // get a list of all unsaved documents and their tab ids + QHash<int, QString> const unsaved_docs = this->UnsavedDocuments(); /* * no unsaved documents, so app can be closed @@ -318,7 +318,7 @@ auto TextEdit::MaybeSaveAnyTab() -> bool { * and show normal unsaved doc dialog */ if (unsaved_docs.size() == 1) { - int modified_tab = unsaved_docs.keys().at(0); + int const modified_tab = unsaved_docs.keys().at(0); tab_widget_->setCurrentIndex(modified_tab); return maybe_save_current_tab(true); } |