diff options
Diffstat (limited to 'svx/source/fmcomp/gridctrl.cxx')
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index d9f70df92f52..60fb2cc05071 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -1582,7 +1582,7 @@ void DbGridControl::RemoveColumns() DbGridColumn* DbGridControl::CreateColumn(sal_uInt16 nId) const { - return new DbGridColumn(nId, *(DbGridControl*)this); + return new DbGridColumn(nId, *const_cast<DbGridControl*>(this)); } sal_uInt16 DbGridControl::AppendColumn(const OUString& rName, sal_uInt16 nWidth, sal_uInt16 nModelPos, sal_uInt16 nId) |