summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docsh5.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-13 11:45:44 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-13 11:45:44 +0200
commit3c9e9a5529e0bb6cc257c272b7265072306a9cd6 (patch)
tree9751467568a8b746c3cc9e320fddc11ee846fffc /sc/source/ui/docshell/docsh5.cxx
parent4f2bb2516d901c8541bae8d2d63c18b2f58775ba (diff)
loplugin:oncevar: empty strings: sc
Change-Id: I8eca50560d9ce0a3be5ffe6a4a88cb0de5d5d451
Diffstat (limited to 'sc/source/ui/docshell/docsh5.cxx')
-rw-r--r--sc/source/ui/docshell/docsh5.cxx3
1 files changed, 1 insertions, 2 deletions
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 ) );