summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorGábor Koruhely <koruhelygabor@gmail.com>2017-10-25 15:07:45 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-10-25 23:32:49 +0200
commit80578036e8ff06405b6aaf4f23e3d9cf753e83e6 (patch)
tree5b5559aaf2170df33805785a503550cbb4a2d4b7 /cui
parent5114545da67c1e541dd846e130cc72ac0c031bae (diff)
cpp check, fix redundantAssignment
Change-Id: I26d8353461d938e327baecf1ca0f529da45eb069 Reviewed-on: https://gerrit.libreoffice.org/43833 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'cui')
-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)
{