summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-07-18 11:27:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-07-18 15:33:48 +0200
commit5c997461bfa0bb40189a96f478cb80e5b4d8a1dc (patch)
tree2fa75172820948eff9e2a815dd2e037c81632e38
parentcd3382cd727f905723c95167733836a90a89a101 (diff)
make XFCellListener single-arg constructor explicit
Change-Id: If519af401dca2ec77ff448409888bbc2871a0c9a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170682 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
-rw-r--r--lotuswordpro/source/filter/lwptablelayout.cxx2
-rw-r--r--lotuswordpro/source/filter/lwptablelayout.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx
index 90fb18c7ba67..6ad5534c792f 100644
--- a/lotuswordpro/source/filter/lwptablelayout.cxx
+++ b/lotuswordpro/source/filter/lwptablelayout.cxx
@@ -1422,7 +1422,7 @@ void LwpTableLayout::ConvertDefaultRow(rtl::Reference<XFTable> const & pXFTable,
void LwpTableLayout::SetCellsMap(sal_uInt16 nRow1, sal_uInt8 nCol1,
sal_uInt16 nRow2, sal_uInt8 nCol2, XFCell* pXFCell)
{
- m_CellsMap.insert({{nRow1, nCol1}, {nRow2, nCol2}}, pXFCell);
+ m_CellsMap.insert({{nRow1, nCol1}, {nRow2, nCol2}}, XFCellListener(pXFCell));
}
/**
diff --git a/lotuswordpro/source/filter/lwptablelayout.hxx b/lotuswordpro/source/filter/lwptablelayout.hxx
index f54c82b8e1f9..a81abec610fb 100644
--- a/lotuswordpro/source/filter/lwptablelayout.hxx
+++ b/lotuswordpro/source/filter/lwptablelayout.hxx
@@ -101,7 +101,7 @@ struct TableConvertAttempt
class XFCellListener : public SfxListener
{
public:
- XFCellListener(XFCell* pCell)
+ explicit XFCellListener(XFCell* pCell)
: m_pCell(pCell)
{
if (m_pCell)