summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-04-13 17:53:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-04-14 11:41:21 +0200
commitc36f9e981d583c5f62943db9cf4116cbda0f0501 (patch)
treee62a3729b7a49c5c366e0aed48afac846f8960d9
parent4fc3466d23010d9553c31c662650072483b81588 (diff)
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>
-rw-r--r--hwpfilter/source/fontmap.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/hwpfilter/source/fontmap.cxx b/hwpfilter/source/fontmap.cxx
index fcd6c4822169..7eba07c03ad3 100644
--- a/hwpfilter/source/fontmap.cxx
+++ b/hwpfilter/source/fontmap.cxx
@@ -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;