diff options
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh5.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index 2872bedc1ac2..40a578e15a0f 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -3125,8 +3125,7 @@ bool ScDocFunc::InsertTable( SCTAB nTab, const OUString& rName, bool bRecord, bo // Only insert vba modules if vba mode ( and not currently importing XML ) if( bInsertDocModule ) { - OUString sSource, sCodeName; - VBA_InsertModule( rDoc, nTab, sCodeName, sSource ); + VBA_InsertModule( rDoc, nTab, OUString(), OUString() ); } rDocShell.Broadcast( ScTablesHint( SC_TAB_INSERTED, nTab ) ); diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx index d247d39ab25d..5d3b3c46ac8b 100644 --- a/sc/source/ui/docshell/docsh5.cxx +++ b/sc/source/ui/docshell/docsh5.cxx @@ -940,7 +940,6 @@ bool ScDocShell::MoveTable( SCTAB nSrcTab, SCTAB nDestTab, bool bCopy, bool bRec SCTAB nTabToUse = nDestTab; if ( nDestTab == SC_TAB_APPEND ) nTabToUse = aDocument.GetMaxTableNumber() - 1; - OUString sCodeName; OUString sSource; try { @@ -958,7 +957,7 @@ bool ScDocShell::MoveTable( SCTAB nSrcTab, SCTAB nDestTab, bool bCopy, bool bRec catch ( const css::uno::Exception& ) { } - VBA_InsertModule( aDocument, nTabToUse, sCodeName, sSource ); + VBA_InsertModule( aDocument, nTabToUse, OUString(), sSource ); } } Broadcast( ScTablesHint( SC_TAB_COPIED, nSrcTab, nDestTab ) ); |