Pick a better variable type

Change-Id: I1c9d3bcb1e750b130a04105ab9cf370b7f31f392
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132994
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2022-04-13 17:53:58 +02:00
parent 4fc3466d23
commit c36f9e981d

View file

@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <cstddef>
#include <stdio.h>
#ifdef __sun
#include <strings.h>
@ -151,7 +152,7 @@ const char* const RepFontTab[] =
int getRepFamilyName(const char* orig, char *buf, double &ratio)
{
for( int i = 0 ; i < int(SAL_N_ELEMENTS(FontMapTab)); i++)
for( std::size_t i = 0 ; i < SAL_N_ELEMENTS(FontMapTab); i++)
{
if( !strcmp(orig, FontMapTab[i].familyname) ){
ratio = FontMapTab[i].ratio;