From 911f80ca103cbdf613aeaecd2cf0b0215d588fd2 Mon Sep 17 00:00:00 2001 From: Nigel Hawkins Date: Thu, 27 Jan 2011 13:52:52 +0000 Subject: Replace SvShorts with std::vector --- sc/source/ui/docshell/docfunc.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sc/source/ui/docshell/docfunc.cxx') diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index 7d040b269e9d..479a4d5939e7 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -105,6 +105,7 @@ #include #include #include +#include using namespace com::sun::star; using ::com::sun::star::uno::Sequence; @@ -2833,8 +2834,8 @@ BOOL ScDocFunc::DeleteTable( SCTAB nTab, BOOL bRecord, BOOL /* bApi */ ) { if (bRecord) { - SvShorts theTabs; - theTabs.Insert(nTab,theTabs.Count()); + vector theTabs; + theTabs.push_back(nTab); rDocShell.GetUndoManager()->AddUndoAction( new ScUndoDeleteTab( &rDocShell, theTabs, pUndoDoc, pUndoData )); } -- cgit