From: Abdelrazak Younes Date: Sun, 18 Nov 2007 23:46:15 +0000 (+0000) Subject: use sizeof instead of hardcoded value. X-Git-Tag: 1.6.10~7297 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6feb6a8947307c189a2fb4bc1427aa1c06d5531f;hp=c61ff2e0b85a4bd96934f548bfa6f72a177f913c;p=features.git use sizeof instead of hardcoded value. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21671 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ParagraphMetrics.cpp b/src/ParagraphMetrics.cpp index 5b44466eeb..8820a60229 100644 --- a/src/ParagraphMetrics.cpp +++ b/src/ParagraphMetrics.cpp @@ -103,8 +103,7 @@ size_t ParagraphMetrics::computeRowSignature(Row const & row, boost::crc_32_type crc; for (pos_type i = row.pos(); i < row.endpos(); ++i) { char_type const b[] = { par_->getChar(i) }; - // char_type is 4 bytes! - crc.process_bytes(b, 4); + crc.process_bytes(b, sizeof(char_type)); if (bparams.trackChanges) { Change change = par_->lookupChange(i); char_type const b[] = { change.type };