summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-10-11 08:09:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-10-11 09:12:17 +0200
commitd0f3e24a7a34aac41e0b433d45c657b136ff8fe0 (patch)
treea60329687edfa96d4e40acf8cb8b1f7453c0ebe3 /vcl/quartz
parent71337b4327805b73e92c995153c5746d89793b13 (diff)
loplugin:loopvartoosmall
> /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: خالد حسني <khaled@aliftype.com> Tested-by: Jenkins
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/ctfonts.cxx2
1 files changed, 1 insertions, 1 deletions
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<intptr_t>(CFArrayGetValueAtIndex(pTags, i));
assert(nTable);