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

Noel Grandin noel at peralex.com
Wed Jul 15 23:36:38 PDT 2015


 vcl/source/window/btndlg.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3209d1a5fc7f1711bf4fb42e57ab300082ba51e8
Author: Noel Grandin <noel at peralex.com>
Date:   Thu Jul 16 08:35:06 2015 +0200

    loplugin:redundantcast
    
    Change-Id: Ifafd45865c93d474510bd0557bb9ab3843b7dbb7

diff --git a/vcl/source/window/btndlg.cxx b/vcl/source/window/btndlg.cxx
index ec98f89..145b02f 100644
--- a/vcl/source/window/btndlg.cxx
+++ b/vcl/source/window/btndlg.cxx
@@ -98,7 +98,7 @@ ImplBtnDlgItem* ButtonDialog::ImplGetItem( sal_uInt16 nId ) const
     for (auto & it : m_ItemList)
     {
         if (it->mnId == nId)
-            return const_cast<ImplBtnDlgItem*>(&(*it));
+            return &(*it);
     }
 
     return NULL;


More information about the Libreoffice-commits mailing list