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

Caolán McNamara caolanm at redhat.com
Fri Oct 6 08:27:19 UTC 2017


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

New commits:
commit 061321bbb54adf9b0df102cdfd7f956f97dcb6b9
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Oct 6 09:19:16 2017 +0100

    coverity#1418966 static_cast should be sufficient
    
    Change-Id: Ieae8695cb36b1779f1b8437bddb887cd24d621e8

diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx
index 38509814f5b0..736722387122 100644
--- a/vcl/source/control/ctrl.cxx
+++ b/vcl/source/control/ctrl.cxx
@@ -427,7 +427,7 @@ void Control::LogicInvalidate(const tools::Rectangle* /*pRectangle*/)
         {
             if (pWindow->ImplIsFloatingWindow())
             {
-                dynamic_cast<FloatingWindow*>(pWindow)->LogicInvalidate(nullptr);
+                static_cast<FloatingWindow*>(pWindow)->LogicInvalidate(nullptr);
                 return;
             }
 


More information about the Libreoffice-commits mailing list