From 4a1cfeae9b35bbb3639c3f48d3bf5ec17a6aa77f Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 7 Apr 2020 11:21:05 +1000 Subject: Use noexcept and const where possible. --- src/Style.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Style.h') diff --git a/src/Style.h b/src/Style.h index 103633373..432dcf946 100644 --- a/src/Style.h +++ b/src/Style.h @@ -71,19 +71,19 @@ public: FontAlias font; Style(); - Style(const Style &source); + Style(const Style &source) noexcept; Style(Style &&) = delete; ~Style(); - Style &operator=(const Style &source); + Style &operator=(const Style &source) noexcept; Style &operator=(Style &&) = delete; void Clear(ColourDesired fore_, ColourDesired back_, int size_, const char *fontName_, int characterSet_, int weight_, bool italic_, bool eolFilled_, bool underline_, ecaseForced caseForce_, - bool visible_, bool changeable_, bool hotspot_); - void ClearTo(const Style &source); - void Copy(Font &font_, const FontMeasurements &fm_); + bool visible_, bool changeable_, bool hotspot_) noexcept; + void ClearTo(const Style &source) noexcept; + void Copy(const Font &font_, const FontMeasurements &fm_) noexcept; bool IsProtected() const noexcept { return !(changeable && visible);} }; -- cgit v1.2.3