https://issues.apache.org/ooo/show_bug.cgi?id=124361

--- Comment #4 from Andre <[email protected]> ---
Another warning that is both annoying and easy to fix is triggered in
ScSingleRefData::InitMembers().  Because it is an inline method the warning is
triggered every time the refdata.hxx header is included, which is quite often.

It uses multiple assignments in one statement:
    nCol = nRow = nTab = nRelCol = nRelRow = nRelTab = 0;
The warning is triggered because the variables are not ordered properly and one
of the SCROW (defined as sal_Int32) is assigned to one of the SCCOL (defined as
sal_Int16) objects.

To avoid the warning and improve readability I turned the statement into three,
one for each type.

Better yet would probably be to do the initialization in the (missing)
constructor.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

Reply via email to