diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-05-27 05:16:37 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-05-27 05:16:37 +0200 |
commit | c70b1baac5b6b85048c894c206b8024e1eb537f3 (patch) | |
tree | edc5885ba5721d386bfeff6ad317cb2fcaa7733c /sc/source/ui/view/tabvwshf.cxx | |
parent | 2b8c2cfaba21f5ac70b6520f69ea146579e4093d (diff) |
rework some other methods for performance improvements
inserting several sheets now happens at once and not for every sheet seperately, this accelerates inserting of sheets at all positions dramatically
Diffstat (limited to 'sc/source/ui/view/tabvwshf.cxx')
-rw-r--r-- | sc/source/ui/view/tabvwshf.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx index e9553352ebdd..1f44d3147900 100644 --- a/sc/source/ui/view/tabvwshf.cxx +++ b/sc/source/ui/view/tabvwshf.cxx @@ -300,7 +300,10 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) InsertTable( *pDlg->GetFirstTable(), nTabNr ); } else - InsertTables( NULL, nTabNr,nCount ); + { + std::vector<rtl::OUString> aNames(0); + InsertTables( aNames, nTabNr,nCount ); + } } else { @@ -336,7 +339,8 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) } else { - InsertTables( NULL, nTabAfter,nCount); + std::vector<rtl::OUString> aNames(0); + InsertTables( aNames, nTabAfter,nCount); } } } |