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

Stephan Bergmann sbergman at redhat.com
Thu Aug 18 06:57:39 UTC 2016


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

New commits:
commit 96b8a84118e0195be03983bde0b3448f3a216bd2
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Aug 18 08:56:53 2016 +0200

    loplugin:redundantcast
    
    Change-Id: I1b1c348311930499e9ee971b87257db40f3873b3

diff --git a/vcl/source/window/tabdlg.cxx b/vcl/source/window/tabdlg.cxx
index 99da7cc..6c97b1f 100644
--- a/vcl/source/window/tabdlg.cxx
+++ b/vcl/source/window/tabdlg.cxx
@@ -327,7 +327,7 @@ std::vector<OString> TabDialog::getAllPageUIXMLDescriptions() const
 
 bool TabDialog::selectPageByUIXMLDescription(const OString& rUIXMLDescription)
 {
-    TabControl* pTabCtrl = dynamic_cast<TabControl*>(findTabControl(const_cast<TabDialog*>(this)));
+    TabControl* pTabCtrl = dynamic_cast<TabControl*>(findTabControl(this));
 
     if (pTabCtrl)
     {


More information about the Libreoffice-commits mailing list