diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2015-08-27 15:25:11 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-09-01 16:28:46 +0100 |
commit | 7fe85d7633a6cb7a921e93d9399c748a41c54bc1 (patch) | |
tree | a13cb02d4a7e9e5d355ec68ca46de4da7d75eb6b /include/vcl/checksum.hxx | |
parent | b5e3aa40586a4cca050b4f74a6f5d9bf90ff8b3a (diff) |
Switching to 64-bit checksum: substituted sal_uLong with BitmapChecksum
A typedef sal_uLong BitmapChecksum;
has been added to include/vcl/checksum.hxx
Wherever needed sal_uLong and sal_Int32 has been substituted with
BitmapChecksum.
A BITMAP_CHECKSUM_BITS constant equal to the amount of bits used by the
BitmapChecksum type has been defined and used in
`GraphicID::GetIDString` (vstools/source/graphic/grfcache.cxx).
Change-Id: I74bd285089e58a8b18c06233d75b87023c7bf31b
Diffstat (limited to 'include/vcl/checksum.hxx')
-rw-r--r-- | include/vcl/checksum.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/vcl/checksum.hxx b/include/vcl/checksum.hxx index ae7c9d6f7ba4..53c2f1620b47 100644 --- a/include/vcl/checksum.hxx +++ b/include/vcl/checksum.hxx @@ -22,9 +22,9 @@ #define INCLUDED_VCL_INC_CHECKSUM_HXX #include <sal/config.h> - #include <sal/saldllapi.h> #include <sal/types.h> +#include <tools/solar.h> /*======================================================================== * @@ -120,6 +120,10 @@ static const sal_uInt64 vcl_crc64Table[256] = { 0x29b7d047efec8728ULL }; +typedef sal_uLong BitmapChecksum; + +#define BITMAP_CHECKSUM_BITS (sizeof(BitmapChecksum) * 8) + #ifdef __cplusplus extern "C" { #endif |