[Libreoffice-commits] .: dbaccess/source

Julien Nabet serval2412 at kemper.freedesktop.org
Thu Oct 27 08:29:51 PDT 2011


 dbaccess/source/ui/tabledesign/TEditControl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ac1eb33bfc4ce95779e8a1ed252d928c799afa40
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Thu Oct 27 17:28:31 2011 +0200

    C-Style casting replaced by C++ style

diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx
index e0606f9..7032c98 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx
@@ -495,7 +495,7 @@ void OTableEditorCtrl::InitController(CellControllerRef&, long nRow, sal_uInt16
 EditBrowseBox::RowStatus OTableEditorCtrl::GetRowStatus(long nRow) const
 {
     DBG_CHKTHIS(OTableEditorCtrl,NULL);
-    ( (OTableEditorCtrl*)this )->SetDataPtr( nRow );
+    (const_cast<OTableEditorCtrl*>(this))->SetDataPtr( nRow );
     if( !pActRow )
         return EditBrowseBox::CLEAN;
     if (nRow >= 0 && nRow == m_nDataPos)


More information about the Libreoffice-commits mailing list