diff options
author | Mesut Çifci <mesutcifci97@gmail.com> | 2020-05-05 14:19:21 +0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-05-05 22:13:48 +0200 |
commit | 7b152167a4e4c3eaac95aee8f282873681c90092 (patch) | |
tree | 59ee6041b9cdbabe6a99ca0d86b5312b49ef0104 /svx | |
parent | 0613619a61c39eff4b7d47d7afdd991658986a72 (diff) |
tdf90341 Clean up excessive const_cast'ing
Change-Id: I6ab4f077325b7d8b9651475a5b776e7c3ddd9636
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93472
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index c8e90ea1dd79..4c9795badad6 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -1635,9 +1635,9 @@ void DbGridControl::RemoveColumns() EditBrowseBox::RemoveColumns(); } -std::unique_ptr<DbGridColumn> DbGridControl::CreateColumn(sal_uInt16 nId) const +std::unique_ptr<DbGridColumn> DbGridControl::CreateColumn(sal_uInt16 nId) { - return std::unique_ptr<DbGridColumn>(new DbGridColumn(nId, *const_cast<DbGridControl*>(this))); + return std::unique_ptr<DbGridColumn>(new DbGridColumn(nId, *this)); } sal_uInt16 DbGridControl::AppendColumn(const OUString& rName, sal_uInt16 nWidth, sal_uInt16 nModelPos, sal_uInt16 nId) |