diff options
author | Neil <nyamatongwe@gmail.com> | 2020-09-18 15:31:30 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-09-18 15:31:30 +1000 |
commit | f8ce3f08b5b8e49ef41dd72760ca617d4907acec (patch) | |
tree | afc65dca71a5d4b45f7e9772678ca4087074c4ec /src/Style.h | |
parent | 07e5d8494434df8385720fa627318e783983ba25 (diff) | |
download | scintilla-mirror-f8ce3f08b5b8e49ef41dd72760ca617d4907acec.tar.gz |
Fix building with Xcode 12 by defining move constructors for FontAlias, Style,
and PositionCacheEntry.
Diffstat (limited to 'src/Style.h')
-rw-r--r-- | src/Style.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Style.h b/src/Style.h index 432dcf946..071d752ca 100644 --- a/src/Style.h +++ b/src/Style.h @@ -33,9 +33,9 @@ struct FontSpecification { class FontAlias : public Font { public: FontAlias() noexcept; - // FontAlias objects can not be assigned except for initialization + // FontAlias objects can be copy or move constructed but not be assigned FontAlias(const FontAlias &) noexcept; - FontAlias(FontAlias &&) = delete; + FontAlias(FontAlias &&) noexcept; FontAlias &operator=(const FontAlias &) = delete; FontAlias &operator=(FontAlias &&) = delete; ~FontAlias() override; @@ -72,7 +72,7 @@ public: Style(); Style(const Style &source) noexcept; - Style(Style &&) = delete; + Style(Style &&) noexcept = default; ~Style(); Style &operator=(const Style &source) noexcept; Style &operator=(Style &&) = delete; |