summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cui/source/dialogs/linkdlg.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx
index d5efc2a02f4b..4a5538922c95 100644
--- a/cui/source/dialogs/linkdlg.cxx
+++ b/cui/source/dialogs/linkdlg.cxx
@@ -172,10 +172,8 @@ IMPL_LINK( SvBaseLinksDlg, LinksSelectHdl, SvTreeListBox *, pSvTabListBox, void
if(nSelectionCount > 1)
{
// possibly deselect old entries in case of multi-selection
- SvTreeListEntry* pEntry = nullptr;
- SvBaseLink* pLink = nullptr;
- pEntry = pSvTabListBox->GetHdlEntry();
- pLink = static_cast<SvBaseLink*>(pEntry->GetUserData());
+ SvTreeListEntry* pEntry = pSvTabListBox->GetHdlEntry();
+ SvBaseLink* pLink = static_cast<SvBaseLink*>(pEntry->GetUserData());
sal_uInt16 nObjectType = pLink->GetObjType();
if((OBJECT_CLIENT_FILE & nObjectType) != OBJECT_CLIENT_FILE)
{