let the compiler do the maths to compute array size

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38599 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2011-05-06 06:49:55 +00:00
parent 47a95c1094
commit b65d0c087b

View File

@ -103,8 +103,7 @@ size_t ParagraphMetrics::computeRowSignature(Row const & row,
Dimension const & d = row.dimension();
char_type const b[] = { row.sel_beg, row.sel_end,
row.begin_margin_sel, row.end_margin_sel, d.wid, d.asc, d.des};
// Each of the variable to process is 4 bytes: 4x7 = 28
crc.process_bytes(b, 28);
crc.process_bytes(b, sizeof(b));
return crc.checksum();
}