mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
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:
parent
47a95c1094
commit
b65d0c087b
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user