summaryrefslogtreecommitdiff
path: root/sc/workben
diff options
context:
space:
mode:
authorNigel Hawkins <n.hawkins@gmx.com>2011-01-04 13:30:03 +0000
committerKohei Yoshida <kyoshida@novell.com>2011-01-07 09:53:42 -0500
commit0194587db67ffa559d439fe4e170a86e56298965 (patch)
treeaaba3fed7cb4b36d477f6d82c6ac3f487fa7eaad /sc/workben
parentc1e095729e22505db24a41e6a3c15e9162953219 (diff)
cppcheck: Remove unused variable in test.cxx
Diffstat (limited to 'sc/workben')
-rw-r--r--sc/workben/test.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/workben/test.cxx b/sc/workben/test.cxx
index 11886115e2dc..4edd40a71f06 100644
--- a/sc/workben/test.cxx
+++ b/sc/workben/test.cxx
@@ -1648,7 +1648,6 @@ IMPL_LINK(MyWindow, CountHdl, PushButton*, EMPTYARG)
IMPL_LINK(MyWindow, TextHdl, PushButton*, EMPTYARG)
{
- USHORT nTab = 0;
USHORT nCol = (USHORT)aColField.GetValue();
USHORT nRow = (USHORT)aRowField.GetValue();
USHORT nPos = (USHORT)aPosField.GetValue();
@@ -1660,8 +1659,9 @@ IMPL_LINK(MyWindow, TextHdl, PushButton*, EMPTYARG)
XSpreadsheetDocumentRef xDoc = lcl_GetDocument(); // Calc-Model
if (xDoc)
{
+ USHORT nTab = 0;
CellAddress aPos;
- aPos.Sheet = nTab;
+ aPos.Sheet = 0;
aPos.Column = nCol;
aPos.Row = nRow;
XCellRef xCell = xDoc->getCell(aPos);