summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorKenneth Venken <kenneth.venken@gmail.com>2010-10-16 20:56:57 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-16 20:56:57 +0100
commit9f8917600d8b8815963d94b15908e3db07612cd7 (patch)
tree84cfefe86818b67b3b6e7272e10426d11c8e88d4 /sdext
parent67d9071a257fa1bee28445a0e4c7fcbd781d0edc (diff)
some patches that replace sizeof(a)/sizeof(a[0]) with SAL_N_ELEMENTS(a)
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
index d5b12bcfb1f1..a28a676bcf79 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
@@ -30,6 +30,7 @@
************************************************************************/
#include "pnghelper.hxx"
+#include <sal/macros.h>
#ifdef SYSTEM_ZLIB
#include "zlib.h"
@@ -132,7 +133,7 @@ void PngHelper::appendFileHeader( OutputBuffer& o_rOutputBuf )
{
static const Output_t aHeader[] = { 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a };
- o_rOutputBuf.insert( o_rOutputBuf.end(), aHeader, aHeader + sizeof(aHeader)/sizeof(aHeader[0]) );
+ o_rOutputBuf.insert( o_rOutputBuf.end(), aHeader, aHeader + SAL_N_ELEMENTS(aHeader) );
}
size_t PngHelper::startChunk( const char* pChunkName, OutputBuffer& o_rOutputBuf )