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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 29 19:28:21 UTC 2020


 svx/source/fmcomp/gridcell.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ae72d8cef6998d84471666ca3088a0f2b43946b7
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jul 29 15:47:48 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Jul 29 21:27:38 2020 +0200

    dynamic_cast followed by static_cast
    
    Change-Id: I63cb568b21f0f645849b39685966d28d16760594
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99706
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index 1608d91549f5..585abcdc124d 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -813,7 +813,7 @@ void DbCellControl::implAdjustReadOnly( const Reference< XPropertySet >& _rxMode
             {
                 _rxModel->getPropertyValue( i_bReadOnly ? OUString(FM_PROP_READONLY) : OUString(FM_PROP_ISREADONLY)) >>= bReadOnly;
             }
-            static_cast< Edit* >( m_pWindow.get() )->SetReadOnly( bReadOnly );
+            pEditWindow->SetReadOnly(bReadOnly);
         }
     }
 }


More information about the Libreoffice-commits mailing list