From d0f3e24a7a34aac41e0b433d45c657b136ff8fe0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 11 Oct 2022 08:09:51 +0200 Subject: loplugin:loopvartoosmall MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > /Users/stephan/lo/core/vcl/quartz/ctfonts.cxx:255:33: error: loop index type 'unsigned int' is narrower than length type 'CFIndex' (aka 'long') [loplugin:loopvartoosmall] > for (auto i = 0u; i < nTags; i++) > ~~^~~~~~~ (and whatever the motivation in d7083fe6dd383ac4144fbe53e300bc3d34f26ef6 "tdf#72456: Support font embedding on macOS" to use an unsigned 0u here) Change-Id: I6a96dd2b2146c27d68a8a53daf3c2fe1f744738d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141201 Reviewed-by: خالد حسني Tested-by: Jenkins --- vcl/quartz/ctfonts.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx index eb98b24569df..887abe4f2f35 100644 --- a/vcl/quartz/ctfonts.cxx +++ b/vcl/quartz/ctfonts.cxx @@ -252,7 +252,7 @@ hb_blob_t* CoreTextFontFace::GetHbTable(hb_tag_t nTag) const return nullptr; hb_face_t* pHbFace = hb_face_builder_create(); - for (auto i = 0u; i < nTags; i++) + for (CFIndex i = 0; i < nTags; i++) { auto nTable = reinterpret_cast(CFArrayGetValueAtIndex(pTags, i)); assert(nTable); -- cgit