diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-11 15:06:42 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-12 05:08:50 +0100 |
commit | 21c602913d98ef46b49fc9b6f9071db92a1597c6 (patch) | |
tree | e0b29571abd982a696c342a423a4e2f40311bfcf /vcl | |
parent | 0ed63ed088d23e48f050c34e49f713281468f6f8 (diff) |
No need to const_cast here
Change-Id: I2ecac05f41b5656714a656fe5289dc21c9f6051a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112300
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/app/salvtables.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 64294c4686de..083f571d858b 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -4144,8 +4144,7 @@ void SalInstanceTreeView::set_clicks_to_toggle(int nToggleBehavior) void SalInstanceTreeView::set_extra_row_indent(const weld::TreeIter& rIter, int nIndentLevel) { - weld::TreeIter& rNonConstIter = const_cast<weld::TreeIter&>(rIter); - SalInstanceTreeIter& rVclIter = static_cast<SalInstanceTreeIter&>(rNonConstIter); + const SalInstanceTreeIter& rVclIter = static_cast<const SalInstanceTreeIter&>(rIter); rVclIter.iter->SetExtraIndent(nIndentLevel); } |