aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Style.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-04-07 11:21:05 +1000
committerNeil <nyamatongwe@gmail.com>2020-04-07 11:21:05 +1000
commit2ebe1a97728f3d29671b3312e395bf0fb880caa6 (patch)
tree003cab55cba81d506cc258951849ce9dd9cf692e /src/Style.h
parentce31c41db1ae2be0f0f3186c94eb8bc4a93b260c (diff)
downloadscintilla-mirror-2ebe1a97728f3d29671b3312e395bf0fb880caa6.tar.gz
Backport: Use noexcept and const where possible.
Backport of changeset 8128:e56cf725d51c.
Diffstat (limited to 'src/Style.h')
-rw-r--r--src/Style.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Style.h b/src/Style.h
index 956a55b65..95ec3fa22 100644
--- a/src/Style.h
+++ b/src/Style.h
@@ -71,20 +71,20 @@ public:
FontAlias font;
Style();
- Style(const Style &source);
+ Style(const Style &source) noexcept;
// Style objects should not be moved but MSVC 2015 requires this.
Style(Style &&) = default;
~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);}
};