[olympic/studio] Make copy/cut/paste enabled function noexcept
This commit is contained in:
parent
d1c6ab9f77
commit
2167a46266
@ -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:
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user