From b70fa47aec65fe95da94fc17640dda27650e9677 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 14 Jun 2017 09:35:16 +0200 Subject: use more SAL_N_ELEMENTS part 1 - teach comphelper::containerToSequence to handle sized arrays - also use range based for-loop where appropriate. Change-Id: I73ba9b6295e7b29c872ee53de7a9340969e07f99 Reviewed-on: https://gerrit.libreoffice.org/38769 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- vcl/source/fontsubset/cff.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source/fontsubset/cff.cxx') diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx index f7d3cdd3d8ca..f01bf6446305 100644 --- a/vcl/source/fontsubset/cff.cxx +++ b/vcl/source/fontsubset/cff.cxx @@ -1501,7 +1501,7 @@ bool CffSubsetterContext::initialCffRead() const char* CffSubsetterContext::getString( int nStringID) { // get a standard string if possible - const static int nStdStrings = sizeof(pStringIds)/sizeof(*pStringIds); + const static int nStdStrings = SAL_N_ELEMENTS(pStringIds); if( (nStringID >= 0) && (nStringID < nStdStrings)) return pStringIds[ nStringID]; -- cgit