summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorLaurent Godard <lgodard.libre@laposte.net>2014-09-03 09:43:37 +0200
committerKohei Yoshida <libreoffice@kohei.us>2014-09-03 02:55:02 -0500
commit76ef9ecdb98252978dc10d11e98eb9a5cfad8acc (patch)
treeabfffb00448cd92cf67fcc2d70fe7dcdb261a35e /sc
parent31c9f6ef804150a2f5a7bcc14b11fc0eef9c8d6b (diff)
-Wmaybe-uninitialized in ScTable::CopyColFiltered
apply same initialization as in ScTable::CopyRowFiltered Change-Id: I9e8de6eaae3b3ad9453e5c06a88cfa93766becd9 Reviewed-on: https://gerrit.libreoffice.org/11263 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table5.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table5.cxx b/sc/source/core/data/table5.cxx
index 11c21c474776..c02c01ebdbce 100644
--- a/sc/source/core/data/table5.cxx
+++ b/sc/source/core/data/table5.cxx
@@ -837,7 +837,7 @@ void ScTable::CopyColFiltered(ScTable& rTable, SCCOL nStartCol, SCCOL nEndCol)
SCCOL nCol = nStartCol;
while (nCol <= nEndCol)
{
- SCCOL nLastCol;
+ SCCOL nLastCol = -1;
bool bFiltered = rTable.ColFiltered(nCol, NULL, &nLastCol);
if (nLastCol > nEndCol)
nLastCol = nEndCol;