mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 21:18:48 +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:
|
public slots:
|
||||||
QString text() const;
|
[[nodiscard]] QString text() const;
|
||||||
QString previousText();
|
QString previousText();
|
||||||
QString nextText();
|
QString nextText();
|
||||||
void setText(const QString& newText);
|
void setText(const QString& newText);
|
||||||
|
|
||||||
bool containsAtRoom() const { return containsAtRoom_; }
|
[[nodiscard]] bool containsAtRoom() const { return containsAtRoom_; }
|
||||||
|
|
||||||
void send();
|
void send();
|
||||||
void paste(bool fromMouse);
|
void paste(bool fromMouse);
|
||||||
void insertMimeData(const QMimeData *data);
|
void insertMimeData(const QMimeData *data);
|
||||||
void updateState(int selectionStart, int selectionEnd, int cursorPosition, const QString& text);
|
void updateState(int selectionStart, int selectionEnd, int cursorPosition, const QString& text);
|
||||||
void openFileSelection();
|
void openFileSelection();
|
||||||
bool uploading() const { return uploading_; }
|
[[nodiscard]] bool uploading() const { return uploading_; }
|
||||||
void message(const QString& body,
|
void message(const QString& body,
|
||||||
MarkdownOverride useMarkdown = MarkdownOverride::NOT_SPECIFIED,
|
MarkdownOverride useMarkdown = MarkdownOverride::NOT_SPECIFIED,
|
||||||
bool rainbowify = false);
|
bool rainbowify = false);
|
||||||
|
|
Loading…
Reference in a new issue