summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/tpsubt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/dbgui/tpsubt.cxx')
-rw-r--r--sc/source/ui/dbgui/tpsubt.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/tpsubt.cxx b/sc/source/ui/dbgui/tpsubt.cxx
index ea24d6c5f039..6651afa23daf 100644
--- a/sc/source/ui/dbgui/tpsubt.cxx
+++ b/sc/source/ui/dbgui/tpsubt.cxx
@@ -275,20 +275,19 @@ void ScTpSubTotalGroup::FillListBoxes()
SCTAB nTab = pViewData->GetTabNo();
SCCOL nMaxCol = rSubTotalData.nCol2;
SCCOL col;
- sal_uInt16 i=0;
rtl::OUString aFieldName;
aLbGroup.Clear();
aLbColumns.Clear();
aLbGroup.InsertEntry( aStrNone, 0 );
- i=0;
+ sal_uInt16 i=0;
for ( col=nFirstCol; col<=nMaxCol && i<SC_MAXFIELDS; col++ )
{
pDoc->GetString( col, nFirstRow, nTab, aFieldName );
if ( aFieldName.isEmpty() )
{
- rtl::OUStringBuffer aBuf;
+ rtl::OUStringBuffer aBuf;
aBuf.append(aStrColumn);
aFieldName = aBuf.makeStringAndClear().replaceAll("%1", ScColToAlpha( col ));
}
@@ -406,7 +405,7 @@ IMPL_LINK( ScTpSubTotalGroup, CheckHdl, ListBox *, pLb )
{
if ( ((SvxCheckListBox*)pLb) == &aLbColumns )
{
- SvLBoxEntry* pEntry = aLbColumns.GetHdlEntry();
+ SvTreeListEntry* pEntry = aLbColumns.GetHdlEntry();
if ( pEntry )
{