From bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Dec 2016 20:26:59 +0300 Subject: Add noexcept in some files. --- src/gui/widgets/textpreview.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/textpreview.h') diff --git a/src/gui/widgets/textpreview.h b/src/gui/widgets/textpreview.h index ccd552a57..5a2eaa441 100644 --- a/src/gui/widgets/textpreview.h +++ b/src/gui/widgets/textpreview.h @@ -112,14 +112,14 @@ class TextPreview final : public Widget * * @param opaque Whether the widget should be opaque or not */ - void setOpaque(const Opaque opaque) + void setOpaque(const Opaque opaque) noexcept2 { mOpaque = opaque; } /** * Gets opacity for this widget (whether or not the background color * is shown below the widget) */ - bool isOpaque() const A_WARN_UNUSED + bool isOpaque() const noexcept2 A_WARN_UNUSED { return mOpaque == Opaque_true; } void adjustSize(); -- cgit v1.2.3-70-g09d2