sd: Drop redundant TableDesignWidget::setModal call

TableDesignWidget::m_bModal has a default value of false,
so there is no need to explicitly call TableDesignWidget::setModal
with the same value.

An upcoming commit will drop TableDesignWidget::m_bModal
altogether.

Change-Id: Iedfcc446b1c6f8d77d82d0478ff447590648765a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211912
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2026-10-07 20:26:53 +02:00
parent dc79823c7e
commit 294f872019
2 changed files with 0 additions and 2 deletions
-1
View File
@@ -62,7 +62,6 @@ public:
virtual void Resize() override;
virtual void StyleUpdated() override;
void updateSettings();
void setModal(bool bModal) { m_bModal = bModal; }
void SetContextMenuHandler(const Link<const Point*, void>& rLink) { maContextMenuHandler = rLink; }
static constexpr int getMaxRowCount() { return 3; }
};
-1
View File
@@ -110,7 +110,6 @@ TableDesignWidget::TableDesignWidget(weld::Builder& rBuilder, ViewShellBase& rBa
{
m_xValueSet->SetStyle(m_xValueSet->GetStyle() | WB_NO_DIRECTSELECT | WB_FLATVALUESET | WB_ITEMBORDER);
m_xValueSet->SetExtraSpacing(8);
m_xValueSet->setModal(false);
m_xValueSet->SetColor();
m_xValueSet->SetSelectHdl(LINK(this, TableDesignWidget, implValueSetHdl));
m_xValueSet->SetContextMenuHandler(LINK(this, TableDesignWidget, implContextMenuHandler));