[olympic/studio] Make copy/cut/paste enabled function noexcept
This commit is contained in:
		| @@ -76,17 +76,17 @@ class BaseEditor: public Widget { | ||||
| 		void setCutEnabled(bool); | ||||
|  | ||||
| 		[[nodiscard]] | ||||
| 		bool cutEnabled() const; | ||||
| 		bool cutEnabled() const noexcept; | ||||
|  | ||||
| 		void setCopyEnabled(bool); | ||||
|  | ||||
| 		[[nodiscard]] | ||||
| 		bool copyEnabled() const; | ||||
| 		bool copyEnabled() const noexcept; | ||||
|  | ||||
| 		void setPasteEnabled(bool); | ||||
|  | ||||
| 		[[nodiscard]] | ||||
| 		bool pasteEnabled() const; | ||||
| 		bool pasteEnabled() const noexcept; | ||||
|  | ||||
| 	protected: | ||||
| 		/** | ||||
|   | ||||
| @@ -54,8 +54,8 @@ void BaseEditor::save() noexcept { | ||||
| } | ||||
|  | ||||
| void BaseEditor::setUnsavedChanges(bool uc) { | ||||
|     m_unsavedChanges = uc; | ||||
|     unsavedChangesChanged.emit(uc); | ||||
| 	m_unsavedChanges = uc; | ||||
| 	unsavedChangesChanged.emit(uc); | ||||
| } | ||||
|  | ||||
| bool BaseEditor::unsavedChanges() const noexcept { | ||||
| @@ -76,7 +76,7 @@ void BaseEditor::setCutEnabled(bool v) { | ||||
| 	cutEnabledChanged.emit(v); | ||||
| } | ||||
|  | ||||
| bool BaseEditor::cutEnabled() const { | ||||
| bool BaseEditor::cutEnabled() const noexcept { | ||||
| 	return m_cutEnabled; | ||||
| } | ||||
|  | ||||
| @@ -85,7 +85,7 @@ void BaseEditor::setCopyEnabled(bool v) { | ||||
| 	copyEnabledChanged.emit(v); | ||||
| } | ||||
|  | ||||
| bool BaseEditor::copyEnabled() const { | ||||
| bool BaseEditor::copyEnabled() const noexcept { | ||||
| 	return m_copyEnabled; | ||||
| } | ||||
|  | ||||
| @@ -94,12 +94,12 @@ void BaseEditor::setPasteEnabled(bool v) { | ||||
| 	pasteEnabledChanged.emit(v); | ||||
| } | ||||
|  | ||||
| bool BaseEditor::pasteEnabled() const { | ||||
| bool BaseEditor::pasteEnabled() const noexcept { | ||||
| 	return m_pasteEnabled; | ||||
| } | ||||
|  | ||||
| ox::Error BaseEditor::saveItem() noexcept { | ||||
| 	return OxError(0); | ||||
| 	return {}; | ||||
| } | ||||
|  | ||||
| UndoStack *BaseEditor::undoStack() noexcept { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user