summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbaselection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbaselection.cxx')
-rw-r--r--sw/source/ui/vba/vbaselection.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx
index dde7d4e21fb5..4e471525425f 100644
--- a/sw/source/ui/vba/vbaselection.cxx
+++ b/sw/source/ui/vba/vbaselection.cxx
@@ -1104,11 +1104,8 @@ void SAL_CALL SwVbaSelection::SplitTable()
SwDocShell* pDocShell = word::getDocShell( mxModel );
if( pDocShell )
{
- SwFEShell* pFEShell = pDocShell->GetFEShell();
- if( pFEShell )
- {
+ if (SwFEShell* pFEShell = pDocShell->GetFEShell())
pFEShell->SplitTable( SplitTable_HeadlineOption::ContentCopy );
- }
}
}