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:
@@ -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; }
|
||||
};
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user