diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2025-02-10 10:14:07 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2025-02-10 14:05:35 +0100 |
commit | b0b97184aa56fd507785045afb51d2b53419d023 (patch) | |
tree | 15f6aaba0da43058cc4dd847f569e7a8e8cca0d3 /vcl/source/app | |
parent | 59d34ccdbd27ddba09179c235ba89e542d818a41 (diff) |
vcl: Simplify and rename SvTabListBox::SetTabJustify
SvTabListBox::SetTabJustify only ever gets called
with SvTabJustify::AdjustCenter for param `eJustify`.
Drop the param and rename the method to
SvTabListBox::SetTabAlignCenter to simplify the code.
Drop now unused enum class SvTabJustify.
Change-Id: Ibaaafcbdc16551f7562987212b25a68552290c66
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181337
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/source/app')
-rw-r--r-- | vcl/source/app/salvtables.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 8eb8721cd910..d05c9419698a 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -3969,10 +3969,7 @@ void SalInstanceTreeView::set_column_editables(const std::vector<bool>& rEditabl m_xTreeView->SetTabEditable(i, rEditables[i]); } -void SalInstanceTreeView::set_centered_column(int nCol) -{ - m_xTreeView->SetTabJustify(nCol, SvTabJustify::AdjustCenter); -} +void SalInstanceTreeView::set_centered_column(int nCol) { m_xTreeView->SetTabAlignCenter(nCol); } int SalInstanceTreeView::get_column_width(int nColumn) const { |