summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui/dbinsdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/dbui/dbinsdlg.cxx')
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index 0151f0f58a45..6a640587265b 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -120,9 +120,6 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
-// tblafmt.hxx
-SV_IMPL_PTRARR( _SwTableAutoFmtTbl, SwTableAutoFmt* )
-
const char cDBFldStart = '<';
const char cDBFldEnd = '>';
@@ -1830,10 +1827,10 @@ void SwInsertDBColAutoPilot::Load()
// then load the AutoFmt file and look for Autoformat first
SwTableAutoFmtTbl aAutoFmtTbl;
aAutoFmtTbl.Load();
- for( sal_uInt16 nAutoFmt = aAutoFmtTbl.Count(); nAutoFmt; )
- if( sTmp == aAutoFmtTbl[ --nAutoFmt ]->GetName() )
+ for( sal_uInt16 nAutoFmt = aAutoFmtTbl.size(); nAutoFmt; )
+ if( sTmp == aAutoFmtTbl[ --nAutoFmt ].GetName() )
{
- pTAutoFmt = new SwTableAutoFmt( *aAutoFmtTbl[ nAutoFmt ] );
+ pTAutoFmt = new SwTableAutoFmt( aAutoFmtTbl[ nAutoFmt ] );
break;
}
}