summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dochdl
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-08-06 21:29:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-07 13:31:11 +0200
commit799753cb80f4c81a6e87bf016924e0f2a29f03f0 (patch)
tree2aaea1622549eb97df423ee80e177c5208685b6c /sw/source/uibase/dochdl
parent6f954f50266f671f9fba25006131f635b00b6e22 (diff)
make SwNodeIndex constructors explicit
which flushes out some more places where we were implicitly construcing SwNodeIndex temporaries Change-Id: If044cb54acd1fe1265837c8076d7fdfe4de49290 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137910 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dochdl')
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index 6f1304e901ed..08377b49ee22 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -1521,7 +1521,7 @@ bool SwTransferable::Paste(SwWrtShell& rSh, TransferableDataHelper& rData, RndSt
// convert the worksheet to a temporary native table using HTML format, and copy that into the original native table
if (!bSingleCellTable && rData.HasFormat( SotClipboardFormatId::HTML ) &&
- rSh.GetDoc()->IsIdxInTable(rSh.GetCursor()->GetNode()) != nullptr && rSh.DoesUndo())
+ rSh.GetDoc()->IsInTable(rSh.GetCursor()->GetNode()) != nullptr && rSh.DoesUndo())
{
SfxDispatcher* pDispatch = rSh.GetView().GetViewFrame()->GetDispatcher();
sal_uInt32 nLevel = 0;
@@ -1534,13 +1534,13 @@ bool SwTransferable::Paste(SwWrtShell& rSh, TransferableDataHelper& rData, RndSt
pDispatch->Execute(FN_INSERT_NNBSP, SfxCallMode::SYNCHRON);
pDispatch->Execute(FN_TABLE_DELETE_TABLE, SfxCallMode::SYNCHRON);
nLevel++;
- } while (rSh.GetDoc()->IsIdxInTable(rSh.GetCursor()->GetNode()) != nullptr);
+ } while (rSh.GetDoc()->IsInTable(rSh.GetCursor()->GetNode()) != nullptr);
if ( SwTransferable::PasteData( rData, rSh, EXCHG_OUT_ACTION_INSERT_STRING, nActionFlags, SotClipboardFormatId::HTML,
nDestination, false, false, nullptr, 0, false, nAnchorType, bIgnoreComments, &aPasteContext, ePasteTable) )
{
bool bFoundTemporaryTable = false;
pDispatch->Execute(FN_LINE_UP, SfxCallMode::SYNCHRON);
- if (rSh.GetDoc()->IsIdxInTable(rSh.GetCursor()->GetNode()) != nullptr)
+ if (rSh.GetDoc()->IsInTable(rSh.GetCursor()->GetNode()) != nullptr)
{
bFoundTemporaryTable = true;
pDispatch->Execute(FN_TABLE_SELECT_ALL, SfxCallMode::SYNCHRON);
@@ -1570,7 +1570,7 @@ bool SwTransferable::Paste(SwWrtShell& rSh, TransferableDataHelper& rData, RndSt
// insert clipboard content as new table rows/columns before the actual row/column instead of overwriting it
else if ( (rSh.GetTableInsertMode() != SwTable::SEARCH_NONE || ePasteTable == PasteTableType::PASTE_ROW || ePasteTable == PasteTableType::PASTE_COLUMN) &&
rData.HasFormat( SotClipboardFormatId::HTML ) &&
- rSh.GetDoc()->IsIdxInTable(rSh.GetCursor()->GetNode()) != nullptr )
+ rSh.GetDoc()->IsInTable(rSh.GetCursor()->GetNode()) != nullptr )
{
OUString aExpand;
sal_Int32 nIdx;