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

New commits:
commit 3209d1a5fc7f1711bf4fb42e57ab300082ba51e8
Author: Noel Grandin <n...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to