Kaydet (Commit) 76ef9ecd authored tarafından Laurent Godard's avatar Laurent Godard Kaydeden (comit) Kohei Yoshida

-Wmaybe-uninitialized in ScTable::CopyColFiltered

apply same initialization as in ScTable::CopyRowFiltered

Change-Id: I9e8de6eaae3b3ad9453e5c06a88cfa93766becd9
Reviewed-on: https://gerrit.libreoffice.org/11263Reviewed-by: 's avatarKohei Yoshida <libreoffice@kohei.us>
Tested-by: 's avatarKohei Yoshida <libreoffice@kohei.us>
üst 31c9f6ef
...@@ -837,7 +837,7 @@ void ScTable::CopyColFiltered(ScTable& rTable, SCCOL nStartCol, SCCOL nEndCol) ...@@ -837,7 +837,7 @@ void ScTable::CopyColFiltered(ScTable& rTable, SCCOL nStartCol, SCCOL nEndCol)
SCCOL nCol = nStartCol; SCCOL nCol = nStartCol;
while (nCol <= nEndCol) while (nCol <= nEndCol)
{ {
SCCOL nLastCol; SCCOL nLastCol = -1;
bool bFiltered = rTable.ColFiltered(nCol, NULL, &nLastCol); bool bFiltered = rTable.ColFiltered(nCol, NULL, &nLastCol);
if (nLastCol > nEndCol) if (nLastCol > nEndCol)
nLastCol = nEndCol; nLastCol = nEndCol;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment