From f8ce3f08b5b8e49ef41dd72760ca617d4907acec Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 18 Sep 2020 15:31:30 +1000 Subject: Fix building with Xcode 12 by defining move constructors for FontAlias, Style, and PositionCacheEntry. --- src/Style.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Style.cxx') 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 -- cgit v1.2.3