diff options
author | Nigel Hawkins <n.hawkins@gmx.com> | 2011-01-27 13:52:52 +0000 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-01-28 09:52:12 -0500 |
commit | 911f80ca103cbdf613aeaecd2cf0b0215d588fd2 (patch) | |
tree | 5cffeab73c57d4e4fc8d640f6d288b080ce9f11a /sc/source/ui/docshell/docfunc.cxx | |
parent | 0787bb32a9312755501593aadd8fa64aaf1884c3 (diff) |
Replace SvShorts with std::vector
Diffstat (limited to 'sc/source/ui/docshell/docfunc.cxx')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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 <basic/basmgr.hxx> #include <boost/scoped_ptr.hpp> #include <set> +#include <vector> 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<SCTAB> theTabs; + theTabs.push_back(nTab); rDocShell.GetUndoManager()->AddUndoAction( new ScUndoDeleteTab( &rDocShell, theTabs, pUndoDoc, pUndoData )); } |