summaryrefslogtreecommitdiff
path: root/vcl/inc/win/salgdi.h
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2022-11-19 14:58:40 +0200
committerخالد حسني <khaled@aliftype.com>2022-11-19 15:45:21 +0100
commita38bb773bb568ef942293f23d0701da933817e8f (patch)
treee628431e3afb207f2849afe923a6668e0e68d795 /vcl/inc/win/salgdi.h
parente65b0bf83b8225fde81ee7b10c1fa4b9f32b6ed1 (diff)
vcl: use std::optional in PhysicalFontFace
Otherwise when a font does not, say, support variations or color palettes, we keep querying the font each time they are requested. Change-Id: I3a41bc73dd814b25af3a8b5b009632ecf7ef27ab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142963 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl/inc/win/salgdi.h')
-rw-r--r--vcl/inc/win/salgdi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/win/salgdi.h b/vcl/inc/win/salgdi.h
index e0661dec5a1c..999bb39a1812 100644
--- a/vcl/inc/win/salgdi.h
+++ b/vcl/inc/win/salgdi.h
@@ -76,7 +76,7 @@ public:
hb_blob_t* GetHbTable(hb_tag_t nTag) const override;
- std::vector<hb_variation_t> GetVariations() const override;
+ const std::vector<hb_variation_t>& GetVariations() const override;
private:
sal_IntPtr mnId;