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.cxx | |
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.cxx')
-rw-r--r-- | src/Style.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Style.cxx b/src/Style.cxx index 00497db67..ff2b49bc2 100644 --- a/src/Style.cxx +++ b/src/Style.cxx @@ -24,6 +24,11 @@ FontAlias::FontAlias(const FontAlias &other) noexcept : Font() { SetID(other.fid); } +FontAlias::FontAlias(FontAlias &&other) noexcept : Font() { + SetID(other.fid); + other.ClearFont(); +} + FontAlias::~FontAlias() { SetID(FontID{}); // ~Font will not release the actual font resource since it is now 0 |