[Libreoffice-commits] core.git: cui/source

Gábor Koruhely koruhelygabor at gmail.com
Wed Oct 25 21:33:10 UTC 2017


 cui/source/dialogs/linkdlg.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 80578036e8ff06405b6aaf4f23e3d9cf753e83e6
Author: Gábor Koruhely <koruhelygabor at gmail.com>
Date:   Wed Oct 25 15:07:45 2017 +0200

    cpp check, fix redundantAssignment
    
    Change-Id: I26d8353461d938e327baecf1ca0f529da45eb069
    Reviewed-on: https://gerrit.libreoffice.org/43833
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Tested-by: Jenkins <ci at libreoffice.org>

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)
         {


More information about the Libreoffice-commits mailing list