[Libreoffice-commits] core.git: vcl/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 12 04:09:36 UTC 2021
vcl/source/app/salvtables.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 21c602913d98ef46b49fc9b6f9071db92a1597c6
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Thu Mar 11 15:06:42 2021 +0100
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Fri Mar 12 05:08:50 2021 +0100
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 at collabora.com>
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);
}
More information about the Libreoffice-commits
mailing list