summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-05-20 18:43:53 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-05-26 00:51:09 +0200
commit5f5e1568710f8a24af9f54be8bf05e30f6f4f66a (patch)
tree2e731ee31e28324f072995ee41b46224dc952a97 /sw
parent4020f9bbd92becd3662cdc3b24ad70b370307e5e (diff)
use new unocrsrs in other writer tables
Change-Id: I0cc178da5ca2493cc50bf6582493790d6b4ba536
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unotbl.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index bebc1191d730..59589a3178b6 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -2577,7 +2577,7 @@ void SwXTextTable::setPropertyValue(const OUString& rPropertyName, const uno::An
const SwStartNode* pSttNd = pTLBox->GetSttNd();
SwPosition aPos(*pSttNd);
// set cursor to top left cell
- SwUnoCrsr* pUnoCrsr = pDoc->CreateUnoCrsr(aPos, true);
+ auto pUnoCrsr(pDoc->CreateUnoCrsr2(aPos, true));
pUnoCrsr->Move( fnMoveForward, fnGoNode );
pUnoCrsr->SetRemainInSection( false );
@@ -2621,7 +2621,6 @@ void SwXTextTable::setPropertyValue(const OUString& rPropertyName, const uno::An
aSet.Put(aBoxInfo);
pDoc->SetTabBorders(rCrsr, aSet);
- delete pUnoCrsr;
}
break;
@@ -2767,7 +2766,7 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName)
const SwStartNode* pSttNd = pTLBox->GetSttNd();
SwPosition aPos(*pSttNd);
// set cursor to top left cell
- SwUnoCrsr* pUnoCrsr = pDoc->CreateUnoCrsr(aPos, true);
+ auto pUnoCrsr(pDoc->CreateUnoCrsr2(aPos, true));
pUnoCrsr->Move( fnMoveForward, fnGoNode );
pUnoCrsr->SetRemainInSection( false );
@@ -2828,7 +2827,6 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName)
aTableBorder.IsDistanceValid = rBoxInfoItem.IsValid(SvxBoxInfoItemValidFlags::DISTANCE);
aRet <<= aTableBorder;
}
- delete pUnoCrsr;
}
break;