summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-05-23 11:12:23 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-05-26 00:51:11 +0200
commit2d80fe10a8d59eca45bd8d1ec551fc58398779f9 (patch)
tree2a3c8157f3223bd458919fe47a1d49ee4885c60a /sw
parent9ebb551c85909952f8837c174c0e10400170df49 (diff)
use new unocrsrs
Change-Id: I7d355e23209e94ce76961e15b6c77214a18edb4e
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unoobj2.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx
index 3064ca60e1de..ce3c3e413bfe 100644
--- a/sw/source/core/unocore/unoobj2.cxx
+++ b/sw/source/core/unocore/unoobj2.cxx
@@ -603,8 +603,7 @@ throw (container::NoSuchElementException, lang::WrappedTargetException,
(CURSOR_SELECTION_IN_TABLE == m_eCursorType)))
{
SwPosition* pStart = pUnoCrsr->Start();
- const ::std::unique_ptr<SwUnoCrsr> aNewCrsr(
- pUnoCrsr->GetDoc()->CreateUnoCrsr(*pStart, false) );
+ auto aNewCrsr(pUnoCrsr->GetDoc()->CreateUnoCrsr2(*pStart, false));
// one may also go into tables here
if ((CURSOR_TBLTEXT != m_eCursorType) &&
(CURSOR_SELECTION_IN_TABLE != m_eCursorType))
@@ -1149,8 +1148,7 @@ SwXTextRange::CreateXTextRange(
{
const uno::Reference<text::XText> xParentText(
::sw::CreateParentXText(rDoc, rPos));
- const ::std::unique_ptr<SwUnoCrsr> pNewCrsr(
- rDoc.CreateUnoCrsr(rPos, false));
+ const auto pNewCrsr(rDoc.CreateUnoCrsr2(rPos, false));
if(pMark)
{
pNewCrsr->SetMark();
@@ -1284,8 +1282,7 @@ throw (uno::RuntimeException, std::exception)
throw uno::RuntimeException();
}
const SwPosition aPos(GetDoc()->GetNodes().GetEndOfContent());
- const ::std::unique_ptr<SwUnoCrsr> pNewCrsr(
- m_pImpl->m_rDoc.CreateUnoCrsr(aPos, false));
+ const auto pNewCrsr(m_pImpl->m_rDoc.CreateUnoCrsr2(aPos, false));
if (!GetPositions(*pNewCrsr))
{
throw uno::RuntimeException();