diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-05-25 13:37:34 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-05-25 13:45:41 +0200 |
commit | 96fb3c52f5d04c8257cefd97630173005e6e466c (patch) | |
tree | 6a5900089d9cd423f5b861841e4c47d7512fd7d8 /l10ntools/source/po.cxx | |
parent | da732faa8220caaf754775c44bef202bacb46341 (diff) |
l10ntools: replace boost::crc with rtl_crc32
Tested with output of "make translations", it apparently computes the
same CRC function, despite the documentation specifying different
polynomials, but maybe that is just different notations...
Change-Id: Ia28a881f5cdf54326fe5051527acd445e7a5771c
Diffstat (limited to 'l10ntools/source/po.cxx')
-rw-r--r-- | l10ntools/source/po.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index 176ce1d813b1..4662d58e0567 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -8,6 +8,7 @@ */ #include <rtl/ustring.hxx> +#include <rtl/crc.h> #include <cstring> #include <ctime> @@ -16,15 +17,6 @@ #include <vector> #include <string> -#ifdef _MSC_VER -#pragma warning (push, 1) -#pragma warning (disable: 4245) -#endif -#include <boost/crc.hpp> -#ifdef _MSC_VER -#pragma warning (pop) -#endif - #include "po.hxx" #include "helper.hxx" @@ -376,9 +368,7 @@ bool PoEntry::IsInSameComp(const PoEntry& rPo1,const PoEntry& rPo2) OString PoEntry::genKeyId(const OString& rGenerator) { - boost::crc_32_type aCRC32; - aCRC32.process_bytes(rGenerator.getStr(), rGenerator.getLength()); - sal_uInt32 nCRC = aCRC32.checksum(); + sal_uInt32 nCRC = rtl_crc32(0, rGenerator.getStr(), rGenerator.getLength()); // Use simple ASCII characters, exclude I, l, 1 and O, 0 to avoid confusing IDs static const char sSymbols[] = "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789"; |