vcl/inc/font/TTFReader.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a15a4f5b77aad416019548e71d7785636d0a7b8a Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu May 1 21:33:15 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri May 2 09:26:41 2025 +0200 use same type as getNumberOfRecords Change-Id: I85d8f547cfc687ba343f8e16cb2c7aed731ffce0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184874 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/vcl/inc/font/TTFReader.hxx b/vcl/inc/font/TTFReader.hxx index eb8d2be34de8..018a1adc47e7 100644 --- a/vcl/inc/font/TTFReader.hxx +++ b/vcl/inc/font/TTFReader.hxx @@ -65,7 +65,7 @@ public: rOffset = 0; rLength = 0; - for (int n = 0; n < getNumberOfRecords(); n++) + for (sal_uInt16 n = 0, nCount = getNumberOfRecords(); n < nCount; n++) { const font::NameRecord* pNameRecord = getNameRecord(n);