mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
InputBar: Mark some functions as [[nodiscard]]
This warns when you the return value of those functions isn't used. Suggested-by: Clang-Tidy: Function X should be marked [[nodiscard]]
This commit is contained in:
parent
9676b7709d
commit
a9d8059fb2
1 changed files with 3 additions and 3 deletions
|
@ -45,19 +45,19 @@ public:
|
|||
}
|
||||
|
||||
public slots:
|
||||
QString text() const;
|
||||
[[nodiscard]] QString text() const;
|
||||
QString previousText();
|
||||
QString nextText();
|
||||
void setText(const QString& newText);
|
||||
|
||||
bool containsAtRoom() const { return containsAtRoom_; }
|
||||
[[nodiscard]] bool containsAtRoom() const { return containsAtRoom_; }
|
||||
|
||||
void send();
|
||||
void paste(bool fromMouse);
|
||||
void insertMimeData(const QMimeData *data);
|
||||
void updateState(int selectionStart, int selectionEnd, int cursorPosition, const QString& text);
|
||||
void openFileSelection();
|
||||
bool uploading() const { return uploading_; }
|
||||
[[nodiscard]] bool uploading() const { return uploading_; }
|
||||
void message(const QString& body,
|
||||
MarkdownOverride useMarkdown = MarkdownOverride::NOT_SPECIFIED,
|
||||
bool rainbowify = false);
|
||||
|
|
Loading…
Reference in a new issue